MCPcopy Index your code
hub / github.com/dmlc/dgl / col

Method col

python/dgl/sparse/sparse_matrix.py:84–92  ·  view source on GitHub ↗

Returns the column indices of the non-zero elements. Returns ------- torch.Tensor Column indices of the non-zero elements

(self)

Source from the content-addressed store, hash-verified

82
83 @property
84 def col(self) -> torch.Tensor:
85 """Returns the column indices of the non-zero elements.
86
87 Returns
88 -------
89 torch.Tensor
90 Column indices of the non-zero elements
91 """
92 return self.coo()[1]
93
94 def coo(self) -> Tuple[torch.Tensor, torch.Tensor]:
95 r"""Returns the coordinate list (COO) representation of the sparse

Callers

nothing calls this directly

Calls 1

cooMethod · 0.95

Tested by

no test coverage detected