Merged
docs: add support status for torch.serialization.add_safe_globals #44457
Zky0803Add on Aug 12
docs: add support status for torch.serialization.add_safe_globals #44457
Merged
Pull Request has been successfully merged by ascend-robot.
(Thank you for Zky0803's contribution.)atomgit-bot
Aug 12 Comments:
Aug 12 Comments:
ascend-robot
Aug 12 Comments:
Aug 12 Comments:
atomgit-bot
Aug 12 Comments:
Aug 12 Comments:
🤖 本次改动均为数据 / 生成 / 二进制文件(如测试用例、锁文件、媒体资源),没有可审查的代码逻辑,已跳过 AI 代码审查。


Incorrect?
Aug 12 Added label: ascend-cla/yes
246 messages are collapsed here。 See more
Sep 23 Removed label: ci-pipeline-running
Sep 23 Added label: ci-pipeline-passed
ascend-robot
Sep 23 Comments:
Sep 23 Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
Sep 23 Comments:
Sep 23 Comments:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


AtlasAccount
Sep 23 Comments:
Sep 23 Comments:
流水线 pytorch_gitcode_PR_multiVersion-onetrack#170 [ commitID:364be8f9 ] 运行失败


【合入来源】
来源任务 Issue:【社区任务】7月社区任务第四期-Ascend for PyTorch API 一致性开发(59)
结果 Issue:torch.serialization.add_safe_globals API 一致性补齐
资料 PR:PR #44457
【分支范围】
本资料 PR 面向
master目标分支。资料分支:
【修改方案】
补充
torch.serialization.add_safe_globalsNative API 支持资料,不修改 API 实现、测试逻辑或 NPU Kernel。根据最新 reviewer 意见,本轮已完成:
serialization-semantics.md;PyTorch-2-x-x.md中新增的Serialization semantics导航;_menu_pt_native_apis.md中新增的对应导航;torch.md的Serialization区域;最终仅修改:
目标 API 条目采用:
### torch.serialization.add_safe_globals <div style="margin-left: 2em"> **原生文档**:[torch.serialization.add_safe_globals](对应版本官方链接) **产品支持情况**: - <term>Atlas A2 训练系列产品</term>:支持 - <term>Atlas A3 训练系列产品</term>:支持 - <term>Ascend 950DT</term>:支持 </div>【社区用例检索与新增必要性】
PyTorch 社区已有:
直接测试覆盖:
目标 API 仅维护 Python safe-global allowlist,不调用 NPU Kernel。
任务分类:
无需新增 API 实现、NPU Kernel、Torch-NPU 专项测试或
test_upstreampatch。【资料变更】
涉及。
最终资料侧仅修改 4 个现有
torch.md。不再新增:
不再修改:
【接口变更】
不涉及。
本 PR 仅更新 Native API 支持资料,不修改:
【功能验证】
A2
A3
A5
三阶段均使用真实
npu:0Tensor。master统一记录:Reviewer 修复与 Git 校验:
最新 force-push 后 PR 三个标签:
【test_upstream patch】
不涉及。
本资料 PR 不修改 PyTorch 官方测试文件,也不修改 Torch-NPU
test_upstreampatch。【CheckList】