MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / zero_grad

Method zero_grad

fairseq/optim/fp16_optimizer.py:206–210  ·  view source on GitHub ↗

Clears the gradients of all optimized parameters.

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

zero_gradMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected