现有 Quantize 日志:
AclNN_Parameter_Error(EZ1001): Param dtype DT_FLOAT should be in dtype support list [[DT_INT8,DT_UINT8,DT_INT32,DT_HIFLOAT8,DT_FLOAT8_E4M3FN,DT_FLOAT8_E5M2,]].
Elu 日志支持列表包含 DT_DOUBLE,而 self/out 参数文档仅列 FLOAT、FLOAT16、BFLOAT16。其余文档漏项见问题描述。
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
Elu、LeakyRelu 的 self/out 文档遗漏 DOUBLE;Relu 的 self/out 文档遗漏 UINT8;Sigmoid 的 self 文档遗漏 DOUBLE、整数、BOOL、COMPLEX64、COMPLEX128,out 文档遗漏 DOUBLE、COMPLEX64、COMPLEX128。上述类型已包含在现有 API 校验/处理路径中。
Quantize 使用
support list [%s]包裹已带方括号的 ToString(outSupportList),报错出现双重方括号,导致首项被识别为 [INT8,影响类型列表核对。Environment / 环境信息 (Mandatory / 必填)
源码基线:ops-nn master,fac671fe4。问题来自 dtype 错误日志与接口文档核对;Quantize 额外 FLOAT8 类型对应 Ascend 950 路径。具体设备型号、安装包版本和日志采集环境未确认。当前修复在 Windows 源码环境完成静态核对,尚未执行 CANN 编译或设备复测。
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
文档完整描述 API 已有支持类型。Quantize 错误日志的支持列表只保留一层方括号,首项正常显示为 DT_INT8。保持现有类型校验和计算逻辑不变。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
现有 Quantize 日志:
AclNN_Parameter_Error(EZ1001): Param dtype DT_FLOAT should be in dtype support list [[DT_INT8,DT_UINT8,DT_INT32,DT_HIFLOAT8,DT_FLOAT8_E4M3FN,DT_FLOAT8_E5M2,]].
Elu 日志支持列表包含 DT_DOUBLE,而 self/out 参数文档仅列 FLOAT、FLOAT16、BFLOAT16。其余文档漏项见问题描述。
Special notes for this issue/备注 (Optional / 选填)