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

Method project

Module/Map/Graph.py:147–149  ·  view source on GitHub ↗
(self, from_index: torch.Tensor)

Source from the content-addressed store, hash-verified

145 self.out_deg[from_idx] += 1
146
147 def project(self, from_index: torch.Tensor) -> torch.Tensor:
148 to_idx = self.edges[from_index].flatten()
149 return to_idx[to_idx >= 0]
150
151 def serialize(self, prefix: str) -> dict[str, np.ndarray]:
152 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected