Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
18 个算子(Threshold/AddRowRanges/InplaceScatterAdd/InplaceUpdate/ScatterMaxWithArgmax/ScatterNdSub/ScatterNonAliasingAdd/SparseSegmentSumGrad/ChamferDistanceGrad/SparseApplyAdadelta/SparseApplyAdagradV2/SparseApplyFtrl/SparseApplyFtrlV2/SparseApplyProximalAdagrad/SparseApplyRMSProp/Dilation2D/MaxPoolGradGradWithArgmax/MaxPoolV3Grad)的 InferShape 实现按全已知 shape 的假设编写:维度数校验、逐维一致性校验未对 unknown rank(-2)和 unknown dim(-1)做放行处理,导致合法动态 shape 图在 InferShape 阶段被误判为非法输入返回 GRAPH_FAILED;部分算子在 unknown rank 时未按语义透传 shape,导致下游推导异常。
CANN 9.2.0 Ascend 950
典型报错样例:维度一致性校验对 -1 维误报 mismatch(如 "The rank of indices must be >= 2"、"shape mismatch" 类 OP_LOGE 输出),InferShape 返回 4294967295(GRAPH_FAILED)。
涉及 unknown shape/rank 的适配及 UT 已在 InferShape 分支完成,含全 -1/全 -2 用例与混合动态 shape({-1,2,4,-1}、{{-1,2,4,-1},{-2}})用例,可关联本 issue。
/assign
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
18 个算子(Threshold/AddRowRanges/InplaceScatterAdd/InplaceUpdate/ScatterMaxWithArgmax/ScatterNdSub/ScatterNonAliasingAdd/SparseSegmentSumGrad/ChamferDistanceGrad/SparseApplyAdadelta/SparseApplyAdagradV2/SparseApplyFtrl/SparseApplyFtrlV2/SparseApplyProximalAdagrad/SparseApplyRMSProp/Dilation2D/MaxPoolGradGradWithArgmax/MaxPoolV3Grad)的 InferShape 实现按全已知 shape 的假设编写:维度数校验、逐维一致性校验未对 unknown rank(-2)和 unknown dim(-1)做放行处理,导致合法动态 shape 图在 InferShape 阶段被误判为非法输入返回 GRAPH_FAILED;部分算子在 unknown rank 时未按语义透传 shape,导致下游推导异常。
Environment / 环境信息 (Mandatory / 必填)
CANN 9.2.0
Ascend 950
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
典型报错样例:维度一致性校验对 -1 维误报 mismatch(如 "The rank of indices must be >= 2"、"shape mismatch" 类 OP_LOGE 输出),InferShape 返回 4294967295(GRAPH_FAILED)。
Special notes for this issue/备注 (Optional / 选填)
涉及 unknown shape/rank 的适配及 UT 已在 InferShape 分支完成,含全 -1/全 -2 用例与混合动态 shape({-1,2,4,-1}、{{-1,2,4,-1},{-2}})用例,可关联本 issue。