Update net.parameters() without .data

前端 未结 0 631
青春惊慌失措
青春惊慌失措 2020-12-28 22:02

Is there any way to update the net parameters with some other tensors that carry gradients as well?

I want to do something like the following:

grads =          


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