Skip to content

Commit cfe2663

Browse files
committed
Updated checkpoint loading to use yaml.safe_load.
1 parent 45de907 commit cfe2663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atomsci/ddm/pipeline/model_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ def _copy_model(self, dest_dir):
27702770

27712771
chkpt_file = os.path.join(self.model_dir, 'checkpoint')
27722772
with open(chkpt_file, 'r') as chkpt_in:
2773-
chkpt_dict = yaml.load(chkpt_in.read())
2773+
chkpt_dict = yaml.safe_load(chkpt_in.read())
27742774
chkpt_prefix = chkpt_dict['model_checkpoint_path']
27752775
files = [chkpt_file]
27762776
# files.append(os.path.join(self.model_dir, 'model.pickle'))

0 commit comments

Comments
 (0)