Closed
[Documentation|文档反馈]: aclnnDynamicQuantV3/V4 头文件中的 yOut shape 说明不完整 #6647
KaranocaVeAdd on Oct 13Closed at 23 days ago
yuning_chen
29 days ago Comments:
29 days ago Comments:
29 days ago Assign jiaoyiming as responsible person
yuning_chen
29 days ago Comments:
29 days ago Comments:
您好,问题已收到,当前问题 @jiaoyiming 正在处理中。


23 days ago Close issue
23 days ago Added label: resolved
[Documentation|文档反馈]: aclnnDynamicQuantV3/V4 头文件中的 yOut shape 说明不完整
问题
V3 和 V4 公共头文件都称
yOut与xshape 相同。INT32 输出会把 8 个 INT4 打包为一个 INT32,因此调用方若按该注释创建同形输出,会在 API shape 校验阶段失败。复现
设置
dstType=DT_INT32且xshape 为[16,32]。头文件注释暗示yOut为[16,32],而 API 要求[16,4]。预期 / 实际
yOut与x维数相同、前置维度相同,末维为x末维的 1/8。yOut与xshape 一致。修复或请求
修正 V3/V4 头文件注释,说明 INT32 的末维例外;其他输出类型仍与
x同 shape。Validation
yOutto have the same rank and leading dimensions asx, with the last dimension one eighth ofx's. The V3/V4 API references document this rule.[16,32]input and INT32[16,4]output; V3 and V4 share the same shape validation. No NPU UT was run for this comment-only change.git apply --unidiff-zero --check fix.patchandgit diff --checkpass on current master.pre-commit4.3.0 passes for both headers, including clang-format 18.1.8, codespell, and OAT checks.