Returns the row indices of the non-zero elements. Returns ------- torch.Tensor Row indices of the non-zero elements
(self)
| 71 | |
| 72 | @property |
| 73 | def row(self) -> torch.Tensor: |
| 74 | """Returns the row indices of the non-zero elements. |
| 75 | |
| 76 | Returns |
| 77 | ------- |
| 78 | torch.Tensor |
| 79 | Row indices of the non-zero elements |
| 80 | """ |
| 81 | return self.coo()[0] |
| 82 | |
| 83 | @property |
| 84 | def col(self) -> torch.Tensor: |