Unverified Commit fbad52e1 by zhou fan Committed by GitHub

fix missing raise keyword in NotImplementedError for hdfs loading (#507)

parent 0f0bc5a5
...@@ -814,7 +814,7 @@ class RayPPOTrainer(object): ...@@ -814,7 +814,7 @@ class RayPPOTrainer(object):
# load from hdfs # load from hdfs
if self.config.trainer.default_hdfs_dir is not None: if self.config.trainer.default_hdfs_dir is not None:
NotImplementedError('load from hdfs is not implemented yet') raise NotImplementedError('load from hdfs is not implemented yet')
else: else:
checkpoint_folder = self.config.trainer.default_local_dir # TODO: check path checkpoint_folder = self.config.trainer.default_local_dir # TODO: check path
if not os.path.isabs(checkpoint_folder): if not os.path.isabs(checkpoint_folder):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment