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

Method zero_grad

fairseq/optim/fp16_optimizer.py:370–373  ·  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

nothing calls this directly

Calls 1

zero_gradMethod · 0.45

Tested by

no test coverage detected