MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / load

Method load

SwissArmyTransformer/sat/ops/ops_builder/builder.py:434–445  ·  view source on GitHub ↗
(self, verbose=True)

Source from the content-addressed store, hash-verified

432 extra_link_args=self.strip_empty_entries(self.extra_ldflags()))
433
434 def load(self, verbose=True):
435 from deepspeed.git_version_info import installed_ops, torch_info
436 if installed_ops[self.name]:
437 # Ensure the op we're about to load was compiled with the same
438 # torch/cuda versions we are currently using at runtime.
439 self.validate_torch_version(torch_info)
440 if torch.cuda.is_available() and isinstance(self, CUDAOpBuilder):
441 self.validate_torch_op_version(torch_info)
442
443 return importlib.import_module(self.absolute_name())
444 else:
445 return self.jit_load(verbose)
446
447 def jit_load(self, verbose=True):
448 if not self.is_compatible(verbose):

Callers 15

convert_transformerFunction · 0.45
convert_vaeFunction · 0.45
process_fnFunction · 0.45
cait_config.pyFile · 0.45
transform_param.pyFile · 0.45
tinyFunction · 0.45
smallFunction · 0.45
small_dWrFunction · 0.45
baseFunction · 0.45

Calls 4

absolute_nameMethod · 0.95
jit_loadMethod · 0.95

Tested by 1

test_decodeFunction · 0.36