Closed
[Bug-Report|缺陷反馈]: MaskedSoftmaxWithRelPosBias 与 foreach GEIR 样例缺陷修复 #8882
吴成文Add on 6 days agoClosed at 6 days ago
6 days ago Assign wuchengwen_oh as responsible person
6 days ago Change title to "[Bug-Report|缺陷反馈]: MaskedSoftmaxWithRelPosBias 与 foreach GEIR 样例缺陷修复", originally titled "fix(foreach,masked_softmax): GEIR 样例编译冲突与 MaskedSoftmax 正确性修复".
6 days ago Change title to "[Bug-Report|缺陷反馈]: MaskedSoftmaxWithRelPosBias 与 foreach GEIR 样例缺陷修复", originally titled "fix(foreach,masked_softmax): GEIR 样例编译冲突与 MaskedSoftmax 正确性修复".
6 days ago Modify description of issue
yuning_chen
6 days ago Comments:
6 days ago Comments:
问题成立。空 Tensor 场景被误拒或跳过校验。建议:①numel()==0 且 shape 合法时放行并短路;②错误码统一 ACLNN_ERR_PARAM_INVALID;③补 N=0/H·W=0 UT。
本条要点: 问题描述


6 days ago Close issue
6 days ago changed custom state from 待办的 to 已完成
6 days ago Added label: resolved
问题描述
本 PR 修复以下缺陷:
ops_proto_math.h与ops_proto_nn.h,新 CANN 中两者重复定义GatherShapes;移除未使用的ops_proto_nn.h。uint32时被截断后继续 tiling;现读取原始维度,越界或负维直接拒绝。b*w使用 32 位乘法,超过 2^32 时切分错误;改为 64 位。SetBlockDim使用 32 位计算;改为 64 位。310。inner_precision_mode按 int32 读取,scale以 float 位型传给 double 形参;改为 int64 读取并显式 float→double。aclCreateTensor结果未检查空指针;统一清理并增加检查。环境信息
重现步骤
UINT32_MAX的 x/mask/bias,调用 aclnn 接口或 tiling。b*w或 GM 偏移超过 2^32 的大 shape。预期结果
b*w、blockDim、GM 偏移计算正确,不发生回绕/截断。日志 / 截图
OPTILING_FAILURE。aclnn、GEIR、foreach示例:运行成功。pre-commit:全部通过。备注