dgl.sparse.SparseMatrix.to_dense

SparseMatrix.to_dense() Tensor[source]

返回稀疏矩阵的密集矩阵格式副本。

Returns:

密集矩阵格式的副本

Return type:

torch.Tensor