This script uses TOCO to transform a frozen tensorflow model to tensorflow-lite compilant model. The example is used to transform a model with the next features:
toco \
--input_file=frozen_model.pb \
--output_file=frozen_model.lite \
--input_format=TENSORFLOW_GRAPHDEF \
--output_format=TFLITE \
--input_shape=1,100,100,3 \
--input_array=input_image \
--output_arrays=landmarks,gender,smile,glasses,head_pose \
--inference_type=FLOAT \
--input_data_type=FLOAT