dgl.sparse.SparseMatrix.shape

property SparseMatrix.shape: Tuple[int]

返回稀疏矩阵的形状。

返回:

稀疏矩阵的形状

返回类型:

Tuple[int]