dgl.sparse.SparseMatrix.device

property SparseMatrix.device

Returns the device the sparse matrix is on.

Returns

The device the sparse matrix is on

Return type

torch.device