def _get_input_quantized_layer(self, layer):
    quant_layer_name = None
    for (key, value) in utils.layer_name_map.items():
        if isinstance(layer, value):
            quant_layer_name = ('Quantized' + key)
            break
    assert (quant_layer_name is not None), ('The layer %s is unsupported to be quantized.' % layer.full_name())
    return quant_layers.__dict__[quant_layer_name](layer, **self._kwargs)
def _get_input_quantized_layer(self, layer):
    quant_layer_name = None
    for (key, value) in utils.layer_name_map.items():
        if isinstance(layer, value):
            quant_layer_name = ('Quantized' + key)
            break
    assert (quant_layer_name is not None), ('The layer %s is unsupported to be quantized.' % layer.full_name())
    return quant_layers.__dict__[quant_layer_name](layer, **self._kwargs)