|View source on GitHub
Apply transformations to the model.
Transforms the original model to perform better while quantized and also match the layout of the target backend.
apply( model, layer_quantize_map )
Transform model to a quantization friendly model.
|Keras model to be quantized.
Map containing list of layers to be quantized and
associated metadata. Keys are layer names which need to be quantized,
and values are dicts containing relevant metadata. For example,
QuantizeConfig passed with a layer is present.
New keras model based on
model which has been
transformed to match the layout of the target backend.