From b60667a52688f7d0e3656671fa6da9eae255a721 Mon Sep 17 00:00:00 2001 From: Vlad Firoiu Date: Sun, 30 Apr 2017 11:23:11 +0100 Subject: [PATCH] Properly join paths for error frame. --- phillip/RL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phillip/RL.py b/phillip/RL.py index a8993bb..b98afba 100644 --- a/phillip/RL.py +++ b/phillip/RL.py @@ -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)