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