PyTorch 文档¶
PyTorch 是一个优化的张量库,用于使用 GPU 和 CPU 进行深度学习。
本文档中描述的功能按发布状态分类
稳定版: 这些功能将长期维护,并且通常不应存在重大的性能限制或文档方面的不足。 我们还期望保持向后兼容性(尽管可能会发生重大更改,并且会提前一个版本通知)。
Beta 版: 这些功能被标记为 Beta 版,因为 API 可能会根据用户反馈而更改,因为性能需要提高,或者因为跨运算符的覆盖范围尚未完成。 对于 Beta 版功能,我们承诺将该功能推进到稳定版分类。 但是,我们不承诺向后兼容性。
原型版: 这些功能通常不作为二进制发行版(如 PyPI 或 Conda)的一部分提供,除非有时在运行时标志之后,并且处于早期阶段以征求反馈和测试。
- torch
- torch.nn
- torch.nn.functional
- torch.Tensor
- 张量属性
- 张量视图
- torch.amp
- torch.autograd
- torch.library
- torch.accelerator
- torch.cpu
- torch.cuda
- 理解 CUDA 内存使用
- 生成快照
- 使用可视化工具
- 快照 API 参考
- torch.mps
- torch.xpu
- torch.mtia
- torch.mtia.memory
- Meta 设备
- torch.backends
- torch.export
- torch.distributed
- torch.distributed.tensor
- torch.distributed.algorithms.join
- torch.distributed.elastic
- torch.distributed.fsdp
- torch.distributed.fsdp.fully_shard
- torch.distributed.tensor.parallel
- torch.distributed.optim
- torch.distributed.pipelining
- torch.distributed.checkpoint
- torch.distributions
- torch.compiler
- torch.fft
- torch.func
- torch.futures
- torch.fx
- torch.fx.experimental
- torch.hub
- torch.jit
- torch.linalg
- torch.monitor
- torch.signal
- torch.special
- torch.overrides
- torch.package
- torch.profiler
- torch.nn.init
- torch.nn.attention
- torch.onnx
- torch.optim
- 复数
- DDP 通信钩子
- 量化
- 分布式 RPC 框架
- torch.random
- torch.masked
- torch.nested
- torch.Size
- torch.sparse
- torch.Storage
- torch.testing
- torch.utils
- torch.utils.benchmark
- torch.utils.bottleneck
- torch.utils.checkpoint
- torch.utils.cpp_extension
- torch.utils.data
- torch.utils.deterministic
- torch.utils.jit
- torch.utils.dlpack
- torch.utils.mobile_optimizer
- torch.utils.model_zoo
- torch.utils.tensorboard
- torch.utils.module_tracker
- 类型信息
- 命名张量
- 命名张量运算符覆盖率
- torch.__config__
- torch.__future__
- torch._logging
- Torch 环境变量