When to use detach

前端 未结 0 374
遇见更好的自我
遇见更好的自我 2021-01-21 12:27

If I have two different neural networks (parametrized by model1 and model2) and corresponding two optimizers, would the below operation using model2.parameters without detach()

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