添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Zero grad optimizer or net?

What should we use to clear out the gradients accumulated for the parameters of the network? optimizer.zero_grad() net.zero_grad() I have seen tutorials use them interchangeably. Are they the same or different? If different, what is the...

Reading time: 1 mins 🕑 Likes: 77 ❤