dgl.sparse.SparseMatrix.shape

property SparseMatrix.shape: Tuple[int]

返回稀疏矩阵的形状。

Returns:

稀疏矩阵的形状

Return type:

元组[int]