File size: 138 Bytes
41ba53f
 
 
 
 
1
2
3
4
5
6
import pickle

dic = pickle.load(open("./wavegru.ckpt", "rb"))
del dic["optim_state_dict"]
pickle.dump(dic, open("./wavegru.ckpt", "wb"))