.grad is None after backward()

后端 未结 0 1197
逝去的感伤
逝去的感伤 2021-01-25 15:03

cur_z_arr[j].grad is None after when the code is executed. I don\'t know why. I also tried cur_z_arr[j].retain_grad() right before energy.backward()

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