How does one load a sequential model from a string in Pytorch?

后端 未结 0 1384
梦如初夏
梦如初夏 2021-01-25 19:13

I have string of a sequential model saved in a file:

str(base_model)
Out[2]: \'Sequential(\\n  (fc1;l1): Linear(in_features=1, out_features=15, bias=True)\\n  (bn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题