DGL
入门
安装与设置
DGL 快速入门
进阶资料
🆕 使用 GraphBolt 进行 GNN 的随机训练
用户指南
用户指南【包含过时信息】
사용자 가이드[시대에 뒤쳐진]
🆕 教程:图 Transformer
教程: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
查看页面源码
dgl.sparse.SparseMatrix.device
属性
SparseMatrix.
device
:
device
返回稀疏矩阵所在的设备。
返回
:
稀疏矩阵所在的设备
返回类型
:
torch.device
Read the Docs
v: latest
版本
下载
在 Read the Docs 上
项目主页
构建