MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / serialize

Method serialize

Module/Map/Graph.py:60–64  ·  view source on GitHub ↗
(self, prefix: str)

Source from the content-addressed store, hash-verified

58 return f"TensorBundle(size={len(self)}, keys=[{', '.join(self.data.keys())}])"
59
60 def serialize(self, prefix: str) -> dict[str, np.ndarray]:
61 return {
62 f"{prefix}/{k}": v.cpu().numpy()
63 for k, v in self.data.items()
64 }
65
66 @classmethod
67 def deserialize(cls, prefix: str, value: dict[str, np.ndarray]) -> Self:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected