MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __call__

Method __call__

codegeex/megatron/global_vars.py:243–246  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

241 self.timers = {}
242
243 def __call__(self, name):
244 if name not in self.timers:
245 self.timers[name] = _Timer(name)
246 return self.timers[name]
247
248 def write(self, names, writer, iteration, normalizer=1.0, reset=False):
249 """Write timers to a tensorboard writer"""

Callers

nothing calls this directly

Calls 1

_TimerClass · 0.85

Tested by

no test coverage detected