ParameterDict.zero_grad

ParameterDict.zero_grad(self)

Sets all Parameters’ gradient buffer to 0.