Skip to content

.zero_grad()

Zero gradients on all leaf tensors in the computation graph.