def _is_skip_quant_op(self, block, in_op):
    '\n        The input op should be skipped quantization.\n        1. the type of input op should be conv2d, depthwise_conv2d or matmul\n        2. the previous ops of the input op are not fake_quantize_dequantize ops\n        '
    target_op_types = ['conv2d', 'depthwise_conv2d', 'matmul', 'conv2d_transpose']
    if (in_op.type not in target_op_types):
        return False
    previous_ops = [utils.find_previous_op(block, arg_name) for arg_name in in_op.input_arg_names]
    return any((((op is not None) and (op.type not in utils.fake_quantize_dequantize_op_types)) for op in previous_ops))
The input op should be skipped quantization.
1. the type of input op should be conv2d, depthwise_conv2d or matmul
2. the previous ops of the input op are not fake_quantize_dequantize ops
def _is_skip_quant_op(self, block, in_op):
    '\n        The input op should be skipped quantization.\n        1. the type of input op should be conv2d, depthwise_conv2d or matmul\n        2. the previous ops of the input op are not fake_quantize_dequantize ops\n        '
    target_op_types = ['conv2d', 'depthwise_conv2d', 'matmul', 'conv2d_transpose']
    if (in_op.type not in target_op_types):
        return False
    previous_ops = [utils.find_previous_op(block, arg_name) for arg_name in in_op.input_arg_names]
    return any((((op is not None) and (op.type not in utils.fake_quantize_dequantize_op_types)) for op in previous_ops))