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

Method deserialize

Module/Map/Graph.py:256–262  ·  view source on GitHub ↗
(cls, prefix: str, value: dict[str, np.ndarray])

Source from the content-addressed store, hash-verified

254
255 @classmethod
256 def deserialize(cls, prefix: str, value: dict[str, np.ndarray]) -> Self:
257 tensor_edge = super().deserialize(prefix, value)
258
259 # Convert from torch.Tensor to AutoScalingTensor
260 tensor_edge.out_deg = AutoScalingTensor(None, grow_on=0, init_tensor=tensor_edge.out_deg)
261 tensor_edge.edges = AutoScalingTensor(None, grow_on=0, init_tensor=tensor_edge.edges)
262 return tensor_edge
263
264
265class Scaling_DenseEdge_Multi(DenseEdge_Multi):

Callers

nothing calls this directly

Calls 2

AutoScalingTensorClass · 0.90
deserializeMethod · 0.45

Tested by

no test coverage detected