dgl.sparse.DiagMatrix.to_dense

DiagMatrix.to_dense()torch.Tensor[source]

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

Returns

The copy in dense matrix format

Return type

torch.Tensor