MCPcopy
hub / github.com/open-mmlab/OpenPCDet / zero_grad

Method zero_grad

tools/train_utils/optimization/fastai_optim.py:154–156  ·  view source on GitHub ↗

Clear optimizer gradients.

(self)

Source from the content-addressed store, hash-verified

152 self.opt.step()
153
154 def zero_grad(self) -> None:
155 "Clear optimizer gradients."
156 self.opt.zero_grad()
157
158 # Passthrough to the inner opt.
159 def __getattr__(self, k: str):

Callers 2

train_one_epochFunction · 0.80
stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected