已合并
docs: update torch.onnx.ONNXProgram.model_proto support status #43583
木路折创建于 8月2日
docs: update torch.onnx.ONNXProgram.model_proto support status #43583
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 木路折 的贡献)8月2日 关联了issue:【社区任务】7月社区任务第四期-Ascend for PyTorch API 一致性开发(10)
atomgit-bot
8月2日 评论:
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",与同类接口ONNXProgram和save()的支持状态格式保持一致 - 同步更新五个版本文档:对
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 覆盖


不准确?
ascend-robot
8月2日 评论:
8月2日 评论:
atomgit-bot
8月2日 评论:
8月2日 评论:
此处折叠了140条消息 查看更多
18 天前 添加了label:ci-pipeline-passed
ascend-robot
18 天前 评论:
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 | ✅ | >>> |
- compile、compile_inductor、compile_torchair : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


18 天前 关闭了关联的issue
18 天前 合入了pull request
ascend-robot
18 天前 评论:
18 天前 评论:
流水线 pytorch_gitcode_PR_multiVersion#14323 [ commitID:378cc9e5 ] 已完成


【合入来源】
关联 issue: https://gitcode.com/Ascend/pytorch/issues/3489
【修改方案】
将 torch.onnx.ONNXProgram.model_proto 的支持状态从 ✘ 更新为 ✔(Atlas A2/A3 训练系列),Ascend 950DT 保持 ✘。
该 API 为非计算类接口(@property,返回 ir.serde.serialize_model(self.model)),与数据类型无关,仅做纯 Python 序列化,NPU 验证通过,原文档标记 ✘ 有误。本次基于最新 master(PR #44408 格式调整后)重新提交,按最新格式使用 ✔/✘ 表示。
修改文件:
【资料变更】
资料检查结果:model_proto 已收录在当前全部版本目录(2-7-1、2-11-0、2-12-0、2-13-0)的 torch-onnx.md 中,但支持状态标记有误,本次已全部刷新为实际支持情况。该 API 非计算类,原文档无 dtype 表述,符合规范。
本次更新以下版本目录的 torch-onnx.md 中 model_proto 的支持情况:
【接口变更】
【功能验证】
接口测试由以下 PR 覆盖:
NPU 验证结果:5 个测试用例全部 OK。
【CheckList】