Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge


Apply transformations to the model.

Transforms the original model to perform better while quantized and also match the layout of the target backend.



View source

Transform model to a quantization friendly model.

model Keras model to be quantized.
layer_quantize_map 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, any custom 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.