(self, num_from: int, max_deg: int)
| 172 | memory footprint. |
| 173 | """ |
| 174 | def __init__(self, num_from: int, max_deg: int) -> None: |
| 175 | self.ranges = torch.ones((num_from, max_deg, 2), dtype=torch.long) * -1 |
| 176 | self.num_ranges = torch.zeros((num_from,), dtype=torch.long) |
| 177 | self.max_deg = max_deg |
| 178 | |
| 179 | def add(self, from_idx: torch.Tensor, to_idx_start: torch.Tensor, to_idx_length: torch.Tensor): |
| 180 | self.ranges[from_idx, self.num_ranges[from_idx], 0] = to_idx_start |
nothing calls this directly
no outgoing calls
no test coverage detected