dgl.sparse.SparseMatrix.to_dense

SparseMatrix.to_dense()torch.Tensor[source]

Returns a copy in dense matrix format of the sparse matrix.

Returns

The copy in dense matrix format

Return type

torch.Tensor