pytorch load 模型时出错: A load persistent id instruction was encountered, but no persistent_load functio

Exception has occurred: UnpicklingError

  •  

A load persistent id instruction was encountered, but no persistent_load function was specified.

运行torch.load() 时报错,原因是保存和加载模型时的pytorch版本不一致导致的,换用一致的版本即可。

 

 

你可能感兴趣的:(人工智能落地,深度学习)