MCPcopy Create free account
hub / github.com/THUDM/GLM / __call__

Method __call__

utils.py:163–166  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

161 self.timers = {}
162
163 def __call__(self, name):
164 if name not in self.timers:
165 self.timers[name] = self.Timer(name)
166 return self.timers[name]
167
168 def log(self, names, normalizer=1.0, reset=True):
169 """Log a group of timers."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected