[Docs] Add support information for torch.utils.checkpoint.get_device_states
Co-authored-by: hehe7758511<2941625023@qq.com> # message auto-generated for no-merge-commit merge: !44713 merge docs-get-device-states-master-v2 into master [Docs] Add support information for torch.utils.checkpoint.get_device_states Created-by: hehe7758511 Commit-by: hehe7758511 Merged-by: ascend-robot Description: ## 修改内容 在以下 PyTorch 版本的 `torch.utils.checkpoint` 支持资料中补充 `torch.utils.checkpoint.get_device_states`: - PyTorch 2.7.1 - PyTorch 2.9.0 - PyTorch 2.11.0 - PyTorch 2.10.0 - PyTorch 2.12.0 - PyTorch 2.13.0 - PyTorch 2.14.0 该 API 在 Atlas A2、Atlas A3 和 Ascend 950DT 上标记为支持。 ## 社区用例情况 PyTorch 社区已有 checkpoint RNG 保存和恢复用例。 TorchNPU 的 `test/test_utils.py::TestCheckpoint::test_checkpoint_rng_cuda` 已经使用 NPU 张量、NPU Dropout 和 `torch.npu.get_rng_state()` 完成适配, 能够通过 checkpoint 调用链覆盖 `torch.utils.checkpoint.get_device_states` 的核心功能。 现有用例覆盖充分,因此无需新增测试用例。 ## NPU 验证 验证环境: - Ubuntu 22.04 - Python 3.11 - PyTorch 2.10.0 - torch-npu 2.10.0 - Ascend 910B3 验证结果: - NPU 张量设备编号采集:PASS - NPU RNG 状态采集:PASS - 嵌套参数:PASS - 空参数:PASS - `test_checkpoint_rng_cuda`:PASS ## 其他检查 - API 实现无需修改。 - 未发现设备硬编码问题。 - `git diff --check` 通过。 - 本 PR 仅修改 API 支持资料。 关联任务: https://gitcode.com/Ascend/pytorch-ecosystem/issues/149 支持说明 Issue: https://gitcode.com/Ascend/pytorch/issues/4089 See merge request: Ascend/pytorch!44713
This commit is contained in:
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.10/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.11/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.12/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.13/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
@@ -143,14 +163,14 @@
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
<!-- npu="910b" id22 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
<!-- end id22 -->
|
||||
<!-- npu="A3" id23 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
<!-- end id23 -->
|
||||
<!-- npu="950" id24 -->
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id21 -->
|
||||
<!-- end id24 -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.14/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
@@ -143,14 +163,14 @@
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
<!-- npu="910b" id22 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
<!-- end id22 -->
|
||||
<!-- npu="A3" id23 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
<!-- end id23 -->
|
||||
<!-- npu="950" id24 -->
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id21 -->
|
||||
<!-- end id24 -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.7/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
### torch.utils.checkpoint.get_device_states
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
**原生文档**:[torch.utils.checkpoint.get_device_states](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.get_device_states)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -53,11 +53,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.CheckpointPolicy
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
**原生文档**:[torch.utils.checkpoint.CheckpointPolicy](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.CheckpointPolicy)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -68,16 +68,16 @@
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id8 -->
|
||||
<!-- npu="950" id9 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
- <term>Ascend 950DT系列产品</term>:支持
|
||||
<!-- end id9 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
### <code><i>class</i></code> torch.utils.checkpoint.SelectiveCheckpointContext
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
**原生文档**:[torch.utils.checkpoint.SelectiveCheckpointContext](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.SelectiveCheckpointContext)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
### torch.utils.checkpoint.create_selective_checkpoint_contexts
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
**原生文档**:[torch.utils.checkpoint.create_selective_checkpoint_contexts](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.create_selective_checkpoint_contexts)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
### torch.utils.checkpoint.set_checkpoint_debug_enabled
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
**原生文档**:[torch.utils.checkpoint.set_checkpoint_debug_enabled](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.set_checkpoint_debug_enabled)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
@@ -131,6 +131,26 @@
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id18 -->
|
||||
|
||||
</div>
|
||||
|
||||
### torch.utils.checkpoint.checkpoint_sequential
|
||||
|
||||
<div style="margin-left: 2em">
|
||||
|
||||
**原生文档**:[torch.utils.checkpoint.checkpoint_sequential](https://pytorch.org/docs/2.9/checkpoint.html#torch.utils.checkpoint.checkpoint_sequential)
|
||||
|
||||
**产品支持情况**:
|
||||
|
||||
<!-- npu="910b" id19 -->
|
||||
- <term>Atlas A2训练系列产品</term>:支持
|
||||
<!-- end id19 -->
|
||||
<!-- npu="A3" id20 -->
|
||||
- <term>Atlas A3训练系列产品</term>:支持
|
||||
<!-- end id20 -->
|
||||
<!-- npu="950" id21 -->
|
||||
- <term>Ascend 950DT系列产品</term>:不支持
|
||||
<!-- end id21 -->
|
||||
|
||||
**限制与说明**:`input`仅支持fp32
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user