未验证 提交 7e19d16f 编写于 作者: Z zhouzj 提交者: GitHub

fix bug. (#53067)

上级 7b56bd25
...@@ -701,9 +701,7 @@ class PostTrainingQuantization: ...@@ -701,9 +701,7 @@ class PostTrainingQuantization:
in self.quant_config.activation_quant_operation_types in self.quant_config.activation_quant_operation_types
or is_conv1d_quant or is_conv1d_quant
): ):
trans_y = (op_type == 'matmul_v2') and op.op().attr( trans_y = (op_type == 'matmul_v2') and op.attr('trans_y')
'trans_y'
)
op_type = op_type + '_trans_y' if trans_y else op_type op_type = op_type + '_trans_y' if trans_y else op_type
collect_var_name( collect_var_name(
utils._get_op_input_var_names(op), utils._get_op_input_var_names(op),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册