已合并
docs: update torch.onnx.ONNXProgram.model_proto support status #43583
docs: update torch.onnx.ONNXProgram.model_proto support status #43583
已合并
木路折创建于 8月2日
木路折
木路折
8月2日

【合入来源】

【修改方案】

将 torch.onnx.ONNXProgram.model_proto 的支持状态从 ✘ 更新为 ✔(Atlas A2/A3 训练系列),Ascend 950DT 保持 ✘。

该 API 为非计算类接口(@property,返回 ir.serde.serialize_model(self.model)),与数据类型无关,仅做纯 Python 序列化,NPU 验证通过,原文档标记 ✘ 有误。本次基于最新 master(PR #44408 格式调整后)重新提交,按最新格式使用 ✔/✘ 表示。

修改文件:

docs/zh/api/native_api/pytorch_2-7-1/torch-onnx.md
docs/zh/api/native_api/pytorch_2-11-0/torch-onnx.md
docs/zh/api/native_api/pytorch_2-12-0/torch-onnx.md
docs/zh/api/native_api/pytorch_2-13-0/torch-onnx.md

【资料变更】

资料检查结果:model_proto 已收录在当前全部版本目录(2-7-1、2-11-0、2-12-0、2-13-0)的 torch-onnx.md 中,但支持状态标记有误,本次已全部刷新为实际支持情况。该 API 非计算类,原文档无 dtype 表述,符合规范。

本次更新以下版本目录的 torch-onnx.md 中 model_proto 的支持情况:

PyTorch 2.7.1
PyTorch 2.11.0
PyTorch 2.12.0
PyTorch 2.13.0

【接口变更】

不涉及

仅修改文档资料,未修改任何业务代码。

【功能验证】

接口测试由以下 PR 覆盖:

NPU 验证结果:5 个测试用例全部 OK。

【CheckList】

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 木路折 的贡献)
木路折木路折
8月2日 创建了 pull request,commit 5d2c370c
木路折木路折
8月2日 关联了issue:【社区任务】7月社区任务第四期-Ascend for PyTorch API 一致性开发(10)
atomgit-bot
atomgit-bot
8月2日 评论:

变更摘要

该 PR 为纯资料更新,依据 issue #3489 及资料检查结果,更正了 torch.onnx.ONNXProgram.model_proto 的支持状态:该接口为非计算类属性(@property,返回 ir.serde.serialize_model(self.model)),NPU 验证通过,原文档标记"否"有误。本次将 master 资料中各版本文档里 model_proto 的"是否支持"由"否"改为"是,暂不支持 Ascend 950DT"。

主要改动

  • 更正 model_proto 支持状态:将 torch.onnx.ONNXProgram.model_proto 的"是否支持"从"否"改为"是,暂不支持 Ascend 950DT",与同类接口 ONNXProgramsave() 的支持状态格式保持一致
  • 同步更新五个版本文档:对 docs/zh/api/native_api/ 下 PyTorch 2.7.1、2.9.0、2.10.0、2.11.0、2.12.0 五个版本的 torch-onnx.md 逐文件进行相同的一行内容更正(5 个文件各新增/删除 1 行)
  • 不涉及业务代码变更:仅修改文档资料,未改动任何接口实现,接口测试由其他 PR 覆盖
likedislike
不准确?
atomgit-bot
atomgit-bot
8月2日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
此处折叠了140条消息 查看更多
ascend-robotascend-robot成员
18 天前 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
18 天前 评论:
流水线 PR-pipeline_pytorch#62701 [ commitID:378cc9e5 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_X86 🛑 >>>
Build_ARM 🛑 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
Build_X86_213 🛑 >>>
Build_ARM_213 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 codecheck_pre-commit >>>
check_error >>>
lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 🛑 >>>
UT_ARM_A2_Part_02 🛑 >>>
UT_ARM_A2_Part_03 🛑 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
UT_ARM_A2_Select_Part_01 🛑 >>>
UT_ARM_A2_Select_Part_02 🛑 >>>
UT_ARM_A2_Part_01_213 🛑 >>>
UT_ARM_A2_Part_02_213 🛑 >>>
UT_ARM_A2_Part_03_213 🛑 >>>
UT_inductor_Part_01_213 🛑 >>>
UT_inductor_Part_02_213 🛑 >>>
UT_inductor_Part_03_213 🛑 >>>
UT_inductor_Part_04_213 🛑 >>>
UT_DIST_ARM_Part_01_213 🛑 >>>
UT_DIST_ARM_Part_02_213 🛑 >>>
UT_DIST_ARM_Part_03_213 🛑 >>>
UT_DIST_ARM_Part_04_213 🛑 >>>
UT_ARM_A2_Select_Part_01_213 🛑 >>>
UT_ARM_A2_Select_Part_02_213 🛑 >>>
流水线 PR-pipeline_pytorch >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, huangjingwei, liangsongwei, yashi999, culechan, Dring, wuyouqi1, L1919_snow, qq_52711437, WhiteNight12, nomiz, xiu_21, ffmh, wanglijun55, hss-shuai, husichao, smallsilly, lanshaozuishuai, jimmyisme1, lzy0920232, alpha-junh, Sunshine_Youngster, wei_zhuoyi, zhangyihuiben, zyw-hw, zzzkeke, rmch, yangch0324, LucciC, AACAES, renyujin, wjlflyer, senzhen-town, pengjingyou, qsc97, limuan, yule100, xiaoqi-zhou, kuhn7, chenxingying, hanye02, zichun_ye, anyrenwei, kkjocker, wangzili121, Lu_G, yvjc, puddingfjz, HandsoemLemon, bigprestigee1, huawuyi, zhenyu10, dairenjie, du-jin-hang, zou-jieyu, adelaideliu, TrHan, wanlinan, Windwindzzz, pengqihw, kisnwang, yuheng_wang, honghao_wang, jizewei, zhangguoguang, sunyu-xuan, chenrayray, hbhu_bin, liujunzhu, c_34, LiNuoh, maoyuanpeng1, zzhongmin, zhaoyu65, bellatan, jiabaolin, zhuofanshen, wencaiwen, lu_zhuge, caoshuyang, molly12, lyx324521, LQ1206, gitcode-chenjiao, cai-weiwei1989, CHDong, ogqin, yuanlipingGit, xuqinglin1, lqz2, zouwei1, chaoluoa, paradox325, jackzhang1116, yaoyao, akh, yujiacheng, dengjie0116, Hubert11111, Shine_Ws, wslhj555, longqiand, OYtao666, JiaqingQiang, luyyyy, Kingbelial, zhanghaiyu0101, wenxp1018, yanliu-luoluo, ksun_sekiro, liyong328, wgzheng, tangky, vivi_is_coding, aoiaoisola, weixin_44494597, wangmengmengwang65667, hid57809721, qq_35468730, comeonup, C547032, gcw_m5OQChA4, yao_yao_ling_xian, cnnbwcy, szqfes_12, cora_19, cann_lilin, can, shawnylee233, fanglanyue0916, hhz0, LiNuohang, taohuoquan, Jesse, WSs_321]评论有效
  • compile、compile_inductor、compile_torchair : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
ascend-robotascend-robot成员
18 天前 关闭了关联的issue
ascend-robotascend-robot成员
18 天前 合入了pull request
ascend-robot
ascend-robot成员
18 天前 评论:
流水线 pytorch_gitcode_PR_multiVersion#14323 [ commitID:378cc9e5 ] 已完成
likedislike