Closed haow85 closed 6 years ago
from parlai/agents/drqa/model.py:
def save(self, filename):
params = {
'state_dict': {
'network': self.network.state_dict(),
},
'feature_dict': self.feature_dict,
'config': self.opt,
}
try:
torch.save(params, filename)
except BaseException:
logger.warn('[ WARN: Saving failed... continuing anyway. ]')
What is the format of the model file such as squad.mdl ?