dgl.sparse.SparseMatrix.device

属性 SparseMatrix.device: device

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

返回:

稀疏矩阵所在的设备

返回类型:

torch.device