2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[CI][MS]联合CI 模型导出报错ValueError: For now, while running in Ascend, the input [paddings] of PadV3 is required to be constant, make sure that paddings is a list

DONE
Bug-Report member
Opened this issue  
2024-04-01 11:11
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

[CI][MS]联合CI 模型导出报错ValueError: For now, while running in Ascend, the input [paddings] of PadV3 is required to be constant, make sure that paddings is a list

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend/GPU/CPU/kirin/等其他芯片

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :
    -- Python version (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. 使用187环境,运行 lite_infer_71b_main.sh lite_infer_38b_4k_bs1_quant_main.sh用例
  2. 模型导出报错ValueError: For now, while running in Ascend, the input [paddings] of PadV3 is required to be constant, make sure that paddings is a list

Describe the expected behavior / 预期结果 (Mandatory / 必填)

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

Special notes for this issue/备注 (Optional / 选填)

Comments (6)

188******92 createdBug-Report
188******92 added
 
kind/bug
label
188******92 added
 
sig/ascend
label
188******92 added
 
sig/parallel
label
188******92 added
 
v2.3.0
label
188******92 added
 
sig/mslite
label
188******92 assigned collaborator youshu
Expand operation logs

Please assign maintainer to check this issue.
请为此issue分配处理人。
@188******92

感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
  1. 如果您遇到动态图问题,可以设置set_context(pynative_synchronize=True)查看报错栈协助定位
  2. 模型精度调优问题可参考官网调优指南
  3. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  4. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review
188******92 changed milestone from B-SIG-Parallel to B-SIG-FrontEnd
fangwenyi added
 
device/ascend
label
fangwenyi added
 
device/ascend
label

根因分析:
PadV3算子在算子前端接口中,新增仅针对于Ascend后端的拦截:paddings 必须是固定的值,不能是其他算子的输出。
否则报错:

ValueError: For now, while running in Ascend, the input [paddings] of PadV3 is required to be constant, make sure that paddings is a list

修改方法:
将该拦截删除,在Ascend后端单独校验。

moran changed issue state from TODO to ACCEPTED
moran changed issue state from ACCEPTED to WIP
188******92 changed milestone from B-SIG-FrontEnd to B-SIG-MSLite
moran added
 
rca/codelogic
label
moran added
 
rct/bugfix
label
moran added
 
ctl/componenttest
label
moran changed milestone from B-SIG-MSLite to B-ComponentTest
moran changed milestone from B-ComponentTest to B-SIG-MSLite
moran changed milestone from B-SIG-MSLite to B-ComponentTest
moran assigned collaborator moran
moran changed assignee from moran to 188******92
moran changed issue state from WIP to VALIDATION

自验结果:
本地无法自验,经测试验证,验证通过。

使用以下版本运行pass
MindSpore 2.3.0.B080-20240402115331
Ascend HDK 24.1.RC1.B071-20240329025251-41
Milan-ASL V100R001C17B229

188******92 changed issue state from VALIDATION to DONE

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(4)
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

Search