Why do we need to set the gradients manually to zero in pytorch?

@ruotianluo I still don’t understand. Though, is there a link I can just read to understand this?

Is there no link to understand how pytorch works and so I can form a mental model of it?

Like something like this seems very strange to someone coming from tensorflow.

1 Like