Skip to content

Commit

Permalink
Properly join paths for error frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfi1 committed Apr 30, 2017
1 parent 3bf4de2 commit b60667a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phillip/RL.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def train(self, experiences, batch_steps=1, train=True, log=True, **kwargs):
results = self.sess.run(run_dict, input_dict)
except tf.errors.InvalidArgumentError as e:
import pickle
with open(self.path + 'error', 'wb') as f:
with open(os.join(self.path, 'error_frame'), 'wb') as f:
pickle.dump(experiences, f)
raise e
#print('After run: %s' % resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)
Expand Down

0 comments on commit b60667a

Please sign in to comment.