MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / __getattr__

Method __getattr__

accessory/util/misc.py:225–231  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

223 self.meters[k].update(v)
224
225 def __getattr__(self, attr):
226 if attr in self.meters:
227 return self.meters[attr]
228 if attr in self.__dict__:
229 return self.__dict__[attr]
230 raise AttributeError("'{}' object has no attribute '{}'".format(
231 type(self).__name__, attr))
232
233 def __str__(self):
234 loss_str = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected