MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get

Method get

SwissArmyTransformer/sat/model/registry.py:21–24  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

19 self.member.pop(name)
20
21 def get(self, name):
22 if name not in self.member:
23 raise ValueError(f'model_class {name} not found.')
24 return self.member[name]
25
26 def __repr__(self):
27 return 'Registry: ' + self.name + " " + str(self.member)

Callers 15

inference_clip.pyFile · 0.80
transform_param.pyFile · 0.80
chat_sat.pyFile · 0.80
get_argsFunction · 0.80
mlp_forward_defaultFunction · 0.80
configure_loggingFunction · 0.80
check_if_zero3Function · 0.80
stepMethod · 0.80
has_functionMethod · 0.80
jit_loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected