完成训练时候save 档案出现问题
Opened this issue · 1 comments
kirinhk commented
Exception has occurred: RuntimeError
[enforce fail at ..\caffe2\serialize\inline_container.cc:365] . invalid file name: model_data\.pt
File "D:\ai\chatbot-master\Chatbot_pytorch\Seq2seqchatbot\execute.py", line 114, in train
torch.save({'modelA_state_dict': encoder.state_dict(),
File "D:\ai\chatbot-master\Chatbot_pytorch\Seq2seqchatbot\execute.py", line 165, in <module>
train()
Lin-cell-lab commented
你要自己写一个本地路径就可以