Skip to content

Commit

Permalink
Merge pull request #412 from mottodora/fix-molnet-example
Browse files Browse the repository at this point in the history
make directory in molnet example if not exist
  • Loading branch information
corochann authored Dec 9, 2019
2 parents 3b6f55d + a7206d9 commit 35f6709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/molnet/train_molnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def main():
optimizer.setup(model)

# Save model-related output to this directory.
if not os.path.exists(args.out):
os.makedirs(args.out)
save_json(os.path.join(args.out, 'args.json'), vars(args))
model_dir = os.path.join(args.out, os.path.basename(cache_dir))
if not os.path.exists(model_dir):
Expand Down

0 comments on commit 35f6709

Please sign in to comment.