Table Of Contents
Table Of Contents

Parameter.zero_grad

Parameter.zero_grad()[source]

Sets gradient buffer on all contexts to 0. No action is taken if parameter is uninitialized or doesn’t require gradient.