DGL
latest
开始使用
安装和设置
DGL 快速入门
先进材料
🆕 使用GraphBolt进行GNN的随机训练
用户指南
用户指南【包含过时信息】
用户指南[过时的]
🆕 教程: 图变换器
教程: dgl.sparse
在CPU上进行训练
在多GPU上进行训练
分布式训练
使用DGL进行论文研究
API 参考
dgl
dgl.data
dgl.dataloading
dgl.DGLGraph
dgl.distributed
dgl.function
dgl.geometry
🆕 dgl.graphbolt
dgl.nn (PyTorch)
dgl.nn.functional
dgl.ops
dgl.optim
dgl.sampling
dgl.sparse
稀疏矩阵类
SparseMatrix
创建操作
属性和方法
dgl.sparse.SparseMatrix.shape
dgl.sparse.SparseMatrix.nnz
dgl.sparse.SparseMatrix.dtype
dgl.sparse.SparseMatrix.device
dgl.sparse.SparseMatrix.val
dgl.sparse.SparseMatrix.row
dgl.sparse.SparseMatrix.col
dgl.sparse.SparseMatrix.indices
dgl.sparse.SparseMatrix.coo
dgl.sparse.SparseMatrix.csr
dgl.sparse.SparseMatrix.csc
dgl.sparse.SparseMatrix.coalesce
dgl.sparse.SparseMatrix.has_duplicate
dgl.sparse.SparseMatrix.to_dense
dgl.sparse.SparseMatrix.to
dgl.sparse.SparseMatrix.cuda
dgl.sparse.SparseMatrix.cpu
dgl.sparse.SparseMatrix.float
dgl.sparse.SparseMatrix.double
dgl.sparse.SparseMatrix.int
dgl.sparse.SparseMatrix.long
dgl.sparse.SparseMatrix.transpose
dgl.sparse.SparseMatrix.t
dgl.sparse.SparseMatrix.T
dgl.sparse.SparseMatrix.neg
dgl.sparse.SparseMatrix.reduce
dgl.sparse.SparseMatrix.sum
dgl.sparse.SparseMatrix.smax
dgl.sparse.SparseMatrix.smin
dgl.sparse.SparseMatrix.smean
dgl.sparse.SparseMatrix.softmax
操作符
dgl.multiprocessing
dgl.transforms
用户自定义函数
注释
为DGL做贡献
DGL 外部函数接口 (FFI)
性能基准测试
杂项
常见问题解答 (FAQ)
环境变量
资源
DGL
dgl.sparse
dgl.sparse.SparseMatrix.device
Edit on GitHub
dgl.sparse.SparseMatrix.device
property
SparseMatrix.
device
:
device
返回稀疏矩阵所在的设备。
Returns
:
稀疏矩阵所在的设备
Return type
:
torch.device
Read the Docs
v: latest
Versions
latest
2.2.x
2.1.x
2.0.x
1.1.x
1.0.x
0.9.x
0.8.x
0.7.x
0.6.x
Downloads
On Read the Docs
Project Home
Builds