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

Method apply

Module/Map/Graph.py:50–52  ·  view source on GitHub ↗
(self, func: T.Callable[[torch.Tensor,], torch.Tensor])

Source from the content-addressed store, hash-verified

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:
52 self.data[k] = func(self.data[k])
53
54 def __len__(self) -> int:
55 return self.index.size(0)

Callers 3

move_dataclass_to_localFunction · 0.45
FunctionCorrelationFunction · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected