def _is_target_layer(self, layer):
    '\n        Whether the layer needs to calculate output scales.\n        '
    flag = False
    if isinstance(layer, dygraph.Layer):
        if (utils.is_leaf_layer(layer) and (not isinstance(layer, tuple(utils.fake_quant_leaf_layers)))):
            flag = True
        if isinstance(layer, tuple(utils.fake_quant_wrap_layers)):
            flag = True
        if isinstance(layer, paddle.nn.quant.FloatFunctionalLayer):
            flag = True
    return flag
Whether the layer needs to calculate output scales.
def _is_target_layer(self, layer):
    '\n        \n        '
    flag = False
    if isinstance(layer, dygraph.Layer):
        if (utils.is_leaf_layer(layer) and (not isinstance(layer, tuple(utils.fake_quant_leaf_layers)))):
            flag = True
        if isinstance(layer, tuple(utils.fake_quant_wrap_layers)):
            flag = True
        if isinstance(layer, paddle.nn.quant.FloatFunctionalLayer):
            flag = True
    return flag