Closed
[P1|缺陷反馈]: PR292 的精度指标可能是伪精度,目录重命名也破坏旧命令 #201
xubinglinAdd on Aug 28Closed at Sep 2
Aug 28 Assign zhangtianrong as responsible person
sxb154714
Aug 28 Comments:
Aug 28 Comments:
感谢您提的意见,已安排相关同学分析中


Sep 1 Associated pull request
Sep 1 Deleted associated pull request: fix examples docs and update framework
Sep 2 Close issue
Sep 2 Added label: resolved
Oct 6 Associated pull request
关联 PR:https://gitcode.com/cann/ops-tensor/pull/292
P1:新增的“精度”可能是伪精度
PR292 新增了 accuracy / tol accuracy 输出,但目前这条链路并没有证明数值正确。examples/transpose_quant_batch_matmul/scripts/verify_result.py:34-62 实际只检查结果文件存在、dtype 和文件大小,随后固定打印 PASS、max abs diff: 0.0、error ratio: 0.0;没有读取 golden,也没有做非零值或有限值检查。于是只要输出文件大小正确,即使内容全零、未正确写入或是错误结果,也会被 examples/common/run_case.py:287-310、488-505 换算成 accuracy=100.00% 并写进结果 CSV。
同时,examples/common/metrics.py:32-37、63-75 会接受或把缺失的 error_ratio 默认成 0.0,公共 runner 没有区分“做过 golden 数值比对”和“只做结构检查”。这样表里的“精度”可能是伪精度,会误导回归判断。
建议:
P1:重命名破坏旧命令,文档也未同步
PR292 将目录从 examples/transpose_quant_batch_matmul_mx 重命名为 examples/transpose_quant_batch_matmul,根 CMake 也改为 add_subdirectory(transpose_quant_batch_matmul)。但新目录下的 tqbmm_mx/README.md:34、40、79、93、113 仍使用旧的 --ops=transpose_quant_batch_matmul_mx 和旧脚本路径;examples/common/run.sh:241-248 会按目录名查找,运行旧命令直接报 Example directory not found。根 examples/README.md:105-114 也没有补上新目录或新的运行命令。
影响是按 README 复制命令无法运行,已有用户脚本会回归。建议统一处理兼容策略:要么在 run.sh 为旧目录名保留一段时间的兼容别名,要么一次性更新所有 README、脚本和示例引用;同时补充根 README,并至少用文档中的命令做一次无设备的路径发现检查。
相关代码: