dgl.sparse.SparseMatrix.shape

property SparseMatrix.shape: Tuple[int]

Returns the shape of the sparse matrix.

Returns:

The shape of the sparse matrix

Return type:

Tuple[int]