MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / optimizer_zero_grad

Method optimizer_zero_grad

verl/verl/workers/engine/base.py:77–81  ·  view source on GitHub ↗

Zero the gradients of the optimizer.

(self)

Source from the content-addressed store, hash-verified

75 raise NotImplementedError
76
77 def optimizer_zero_grad(self):
78 """
79 Zero the gradients of the optimizer.
80 """
81 raise NotImplementedError
82
83 def optimizer_step(self):
84 """

Callers 1

train_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected