Closed
FlatQuant 文档将 GE 属性 dst_dtype 的默认值写错 #6792
KaranocaVeAdd on Oct 17Closed at 17 days ago
yuning_chen
Oct 17 Comments:
Oct 17 Comments:
Oct 19 Assign liujie12345678 as responsible person
Oct 19 Assign gitee-duhuiping as responsible person
25 days ago Removed responsible person liujie12345678
17 days ago Close issue
16 days ago Added label: resolved


FlatQuant 文档将 GE 属性 dst_dtype 的默认值写错
固定源码为
cann/ops-nn@ae873b119fb5499c41a6893f920171551fb0a197。matmul/flat_quant/README.md将可选属性dst_dtype的默认值写为DT_INT32(第 136 行)。同一版本的 GE Proto 在matmul/flat_quant/op_graph/flat_quant_proto.h将其默认值注册为DT_INT4(第 59 行;上方注释还写明默认枚举值为 29),运行时 OpDef 在matmul/flat_quant/op_host/flat_quant_def.cpp也将默认值设为ge::DT_INT4(第 54 行)。因此,省略该 GE 属性时实际默认类型与 README 描述不同。这项差异针对 GE/IR 属性默认值。ACLNN 接口由调用者显式提供输出 Tensor,并有独立的 packed INT32 输出路径;本修复不改 ACLNN 行为或相关说明。遵循 README 按 INT32 默认值配置消费者或输出布局的图调用者,可能与实际采用的 INT4 默认值不匹配。
修复范围仅为 README 中
dst_dtype的默认值文字,将其改为DT_INT4。