Skip to content

Commit

Permalink
revised train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadanksu committed Jan 23, 2018
1 parent 2a02bda commit cd16fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def maybe_save_model(savedir, container, state):
U.save_state(os.path.join(savedir, model_dir, "saved"))
if container is not None:
container.put(os.path.join(savedir, model_dir), model_dir)
relatively_safe_pickle_dump(state, os.path.join(savedir, 'training_state.pkl.zip'), compression=True)
#relatively_safe_pickle_dump(state, os.path.join(savedir, 'training_state.pkl.zip'), compression=True)
if container is not None:
container.put(os.path.join(savedir, 'training_state.pkl.zip'), 'training_state.pkl.zip')
relatively_safe_pickle_dump(state["monitor_state"], os.path.join(savedir, 'monitor_state.pkl'))
Expand Down

0 comments on commit cd16fa4

Please sign in to comment.