Skip to content

Commit

Permalink
do not remove weights after save
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Aug 14, 2020
1 parent 8f83bd2 commit 6b27dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/distrib_data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def load_spawn_weights(self, original_model):
original_model.load_state_dict(loaded_model.state_dict())

# remove ddp weights
os.remove(path)
# os.remove(path)

return loaded_model

Expand Down

0 comments on commit 6b27dc2

Please sign in to comment.