(self)
| 326 | self.size = size |
| 327 | |
| 328 | def t(self) -> Tensor: # Only support accessing its transpose: |
| 329 | from torch_geometric.utils import to_torch_csr_tensor |
| 330 | size = self.size |
| 331 | return to_torch_csr_tensor( |
| 332 | self.edge_index.flip([0]), |
| 333 | self.edge_attr, |
| 334 | size[::-1] if isinstance(size, (tuple, list)) else size, |
| 335 | ) |
| 336 | |
| 337 | |
| 338 | # Types for accessing data #################################################### |