已关闭
[Bug-Report|缺陷反馈]: Ascend350平台aclnnNonzeroV2接口bf16数据类型用例支持问题 #6259
zhangxiyan7创建于  14 天前关闭于  14 天前
zhangxiyan7
zhangxiyan7成员
14 天前 创建

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

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

需求为新增DV100-lite芯片,NPU ARCH仍与DV100保持一致(DAV_3510/RegBase),SOC VERSION为Ascend350,需要NonZero算子新增ascend350平台支持。此前PR中算子的芯片判断从SocVersion改造为NpuArch架构判断,但遗漏了non_zero的aclnnNonzeroV2:其dtype支持列表选择仍采用“SocVersion∈[ASCEND910B, ASCEND910E]”区间判断,而SocVersion枚举中ASCEND950(=ASCEND910_95,值为3)恰好落在区间内、ASCEND350(值为12)位于区间之外,导致Ascend350未正确识别为与950同代的RegBase芯片、走入错误分支,BF16输入在API入口校验即被拦截,报以下错误:

AclNN_Parameter_Error(EZ1001):"Tensor self not implemented for DT_BFLOAT16, should be in dtype support list [DT_FLOAT,DT_FLOAT16,DT_INT8,DT_UINT8,DT_INT16,DT_UINT16,DT_INT32,DT_UINT32,DT_INT64,DT_UINT64,DT_DOUBLE,DT_BOOL]"

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

CANN9.2.0+ascend350平台

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

算子代码中,流程控制中放开Ascend350,与Ascend950(原为910_95)拉齐;算子原型增加Ascend350注册

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

ascend350平台上通路测试通过

/

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

likedislike
zhangxiyan7zhangxiyan7成员
14 天前 添加了label:bug-report
zhangxiyan7zhangxiyan7成员
14 天前 修改标题为 “[Bug-Report|缺陷反馈]: 修复Ascend350平台”,原标题为“[Bug-Report|缺陷反馈]: ”
zhangxiyan7zhangxiyan7成员
14 天前 修改标题为 “[Bug-Report|缺陷反馈]: 修复Ascend350平台aclnnNonzeroV2接口bf16数据类型用例”,原标题为“[Bug-Report|缺陷反馈]: 修复Ascend350平台”
zhangxiyan7zhangxiyan7成员
14 天前 修改标题为 “[Bug-Report|缺陷反馈]: Ascend350平台aclnnNonzeroV2接口bf16数据类型用例支持问题”,原标题为“[Bug-Report|缺陷反馈]: 修复Ascend350平台aclnnNonzeroV2接口bf16数据类型用例”
zhangxiyan7
zhangxiyan7成员
14 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
14 天前 将 zhangxiyan7 设为负责人
CANN-robotCANN-robot成员
14 天前 关闭了 issue
CANN-robotCANN-robot成员
14 天前 添加了label:resolved