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

Method __setitem__

Module/Map/Graph.py:46–48  ·  view source on GitHub ↗
(self, index, value: TensorBundle[T_Fields])

Source from the content-addressed store, hash-verified

44 return self.__class__(self.index.__getitem__(index), selected_dict)
45
46 def __setitem__(self, index, value: TensorBundle[T_Fields]) -> None:
47 for k in self.data:
48 self.data[k].__setitem__(index, value.data[k])
49
50 def apply(self, func: T.Callable[[torch.Tensor,], torch.Tensor]) -> None:
51 for k in self.data:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected