Fix bug of supporting channelwise dygraph quantized model, test=develop (#30531)

revert-31068-fix_conv3d_windows
cc 4 years ago committed by GitHub
parent c0fb03a0dc
commit ce6777fcdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -154,8 +154,7 @@ class Quant2Int8MkldnnPass(object):
is_quantized_op = True
for var_node in op_node.inputs:
for front_op_node in var_node.inputs:
if "fake_quantize_dequantize_" not in front_op_node.name(
):
if "quantize_dequantize" not in front_op_node.name():
is_quantized_op = False
if not is_quantized_op:
op_node.op()._set_attr("skip_quant", True)

Loading…
Cancel
Save