MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / maybe_print

Method maybe_print

PATH/core/fp16/opt.py:203–206  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

201 self.clip_grad_norm = clip_grad_norm
202
203 def maybe_print(self, msg):
204 rank = link.get_rank()
205 if self.verbose and rank == 0:
206 print(msg)
207
208 def __getstate__(self):
209 raise RuntimeError("FP16_Optimizer should be serialized using "

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected