Update save.py
This commit is contained in:
parent
196ab974d6
commit
da7b4f59ee
1 changed files with 3 additions and 2 deletions
|
|
@ -94,8 +94,9 @@ def fast_save_pickle(shard, name):
|
|||
torch.save(
|
||||
shard,
|
||||
name,
|
||||
pickle_module = pickle,
|
||||
pickle_protocol = pickle.HIGHEST_PROTOCOL,
|
||||
# HIGHEST_PROTOCOL seems to not work with Pytorch!
|
||||
# pickle_module = pickle,
|
||||
# pickle_protocol = pickle.HIGHEST_PROTOCOL,
|
||||
)
|
||||
return
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue