This document is used to enable Tensorflow Keras models using Intel® Neural Compressor.
# Install Intel® Neural Compressor
pip install neural-compressor
pip install intel-tensorflow
Note: Supported Tensorflow Version.
The pretrained model is provided by Keras Applications. prepare the model, Run as follow:
prepare_model.py --output_model=/path/to/model
--output_model
the model should be saved as SavedModel format or H5 format.
bash run_tuning.sh --config=resnet50.yaml --input_model=./path/to/model --output_model=./result
bash run_benchmark.sh --config=resnet50.yaml --input_model=./path/to/model --mode=performance