It seems they use different format. I saved my .state_dict() as a .mat file as:
import numpy, scipy.io 8
scipy.io.savemat(params[‘restore_folder’] +
‘encoder’+params[‘restore_model’]+’.mat’, mdict=encoder.state_dict())
However, when I load the .mat file to matlab it is able to read the names of the encoder layers but they are not proper structures and matlab gives an error.
Any suggestions?