MCPcopy Create free account
hub / github.com/cactus-compute/cactus / load

Method load

python/src/graph.py:24–30  ·  view source on GitHub ↗
(cls, filename)

Source from the content-addressed store, hash-verified

22
23 @classmethod
24 def load(cls, filename):
25 h = _lib.cactus_graph_load(str(filename).encode())
26 if not h:
27 raise RuntimeError("cactus_graph_load failed")
28 obj = cls.__new__(cls)
29 obj.h = h
30 return obj
31
32 def __del__(self):
33 h = getattr(self, "h", None)

Callers 11

cli.pyFile · 0.45
ensure_vad_weightsFunction · 0.45
_download_config_jsonFunction · 0.45
_load_raw_hf_state_dictFunction · 0.45
cmd_downloadFunction · 0.45
convert_hf_model_weightsFunction · 0.45
_load_needle_checkpointFunction · 0.45
convert_hf_tokenizerFunction · 0.45
get_prev_configFunction · 0.45

Calls 1

encodeMethod · 0.45