Skip to content

Commit b60667a

Browse files
committed
Properly join paths for error frame.
1 parent 3bf4de2 commit b60667a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phillip/RL.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def train(self, experiences, batch_steps=1, train=True, log=True, **kwargs):
245245
results = self.sess.run(run_dict, input_dict)
246246
except tf.errors.InvalidArgumentError as e:
247247
import pickle
248-
with open(self.path + 'error', 'wb') as f:
248+
with open(os.join(self.path, 'error_frame'), 'wb') as f:
249249
pickle.dump(experiences, f)
250250
raise e
251251
#print('After run: %s' % resource.getrusage(resource.RUSAGE_SELF).ru_maxrss)

0 commit comments

Comments
 (0)