Closed
[Bug-Report|缺陷反馈]:【易用性】assemble() 无参数校验,API 误用时产生内部崩溃式错误,报错信息不清晰,请修改。 #3272
liuxiaoxiao11Add on Sep 9Closed at Sep 11
Sep 9 Added label: bug-report
Sep 9 changed custom category from 任务 to 缺陷
Sep 9 Added label: Frontend
袁野
Sep 9 Comments:
Sep 9 Comments:
@seu_chang 请关注下此问题


Sep 9 Associated pull request
Sep 9 Assign HuYiSheng01 as responsible person
Sep 10 Associated pull request
Sep 11 Associated pull request
Sep 11 Close issue
Sep 14 Added label: resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
pypto.assemble 的 Python 前端实现(operation.py:121-130)无任何参数校验,所有参数直接透传给 pypto_impl.Assemble()。
当用户传错参数类型或顺序时,Python 内部在深层调用链中崩溃,错误信息完全隐藏了用户的实际意图。
Environment / 环境信息 (Mandatory / 必填)
服务器/NPU 型号: Ascend 910C
PyPTO 版本/Commit: 0.2.1
CANN 版本: 9.2.0(/home/operation/Ascend/ascend-toolkit)
Python 版本: 3.11.15
操作系统: Huawei Cloud EulerOS 2.0 (aarch64)
torch 版本: 2.7.1
torch_npu 版本: 2.7.1.post2
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
复现步骤
Describe the expected behavior / 预期结果 (Mandatory / 必填)
语义化详细提示,可再优化一下,例如:
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
operation.py:121-130:
Special notes for this issue/备注 (Optional / 选填)