Skip to content

Commit

Permalink
fix bug in creating training weights directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gkane26 committed May 8, 2021
1 parent eda25fb commit f83840c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychrnn/backend/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def train(self, trial_batch_generator, train_params={}):
# --------------------------------------------------
if training_weights_path != None:
if path.dirname(training_weights_path) != "" and not path.exists(path.dirname(training_weights_path)):
makedirs(path.dirname(_weights_path))
makedirs(path.dirname(training_weights_path))

# --------------------------------------------------
# Compute gradients
Expand Down

0 comments on commit f83840c

Please sign in to comment.