dgl.sparse.SparseMatrix.device

property SparseMatrix.device: device

返回稀疏矩阵所在的设备。

Returns:

稀疏矩阵所在的设备

Return type:

torch.device