已关闭
[Bug-Report|缺陷反馈]: GroupedDynamicBlockQuant算子部分case动态shape失败 #1098
pyongq创建于  2月24日关闭于  2月25日
pyongq
pyongq
2月24日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

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

GroupedDynamicBlockQuant算子,当输入X的动态shape的-2轴为-1,同时输入GroupList的动态shape为-2时(即不知道X的-2轴大小,且不知道GroupList的大小时),存在scale的动态shape推导错误的问题,因为scale的-2轴会等于dim1 / rowBlockSize + groupNum,dim1为X的-2轴大小,rowBlockSize为用户输入,groupNum为GroupList的大小。

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

Ascend950

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

GroupedDynamicBlockQuant算子,部分case 动态会失败。因为scale的-2轴会等于dim1 / rowBlockSize + groupNum,dim1为X的-2轴大小,rowBlockSize为用户输入,groupNum为GroupList的大小。原来只考虑了dim1不知道的情况,如果groupNum也不知道时就会推导错误。即输入的动态shape中x的-2轴为-1,groupList为-2时,就会有问题。

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

当X的-2轴大小不知道,或者groupList的大小不知道时,scale的-2轴会等于-1;否则会等于dim1 / rowBlockSize + groupNum,dim1为X的-2轴大小,rowBlockSize为用户输入,groupNum为GroupList的大小

[E1999: Inner Error!
E1999[PID:1295202] 2026-02-14-03:36:39.091.501(E1999): Op[Node_Output]’s input _input1 shape contains negative orzero dimension[FUNC:CommonVerify][FLE:op_desc.cl[LNE:1806]
TraceBack (most recent calllast):
Node_Output(NetOutput) Verify falle.[FUNC:Verif)[ILE:node_utils ex.c][LINE:167]
Verifying Node_Output faled.,[FUNC:IinferShapeAndTypel[FIL:infershape_passcl[LINE:13]
CallInferShapeAndType for node:Node_Output(NetOutput) filed[FUNC:Infer][FILE:infershape_pass.c][LINE:121]
process pass InferShapePass on node:Node_Output falled, ret:4294967295[FUNC:RunPassesOnNode][FILE:base_pass.cc[LINE:572]
Run graph falled, error code:1343242270, session_id:0, graph_id:0.[FUNC:RunGraph][FIE:ge_api.cc][LNE:551]

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

likedislike
pyongq
pyongq
2月24日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
2月24日 将 pyq17870581669 设为负责人
pyongqpyongq
2月24日 关联了pull request:modify GroupedDynamicBlockQuant InferShape
pyongqpyongq
2月24日 修改了issue 的描述
CANN-robotCANN-robot成员
2月25日 关闭了 issue
CANN-robotCANN-robot成员
3月20日 添加了label:resolved