o

optimizer.zero_grad()

Software / AppMentioned in 1 video

A method used to clear the gradients of all optimized tensors before the next backward pass.