1# Extract list of operators from a list of TfLite models 2 3## Introduction 4 5Purpose of this script is to inspect a list of user-provided TfLite models and report 6the list of operators that are used as well as the data-types that the models operate on. 7The script can subsequently generate a configuration file that can be provided to the 8Compute Library build system and generate a library that contains only the operators required 9by the given model(s) to run. 10 11Utilizing this script, use-case tailored Compute Library dynamic libraries can be created, 12helping reduce the overall binary size requirements. 13 14## Usage example 15 16Assuming that the virtual environment is activated and the requirements are present, 17we can run the following command: 18 19```bash 20./report_model_ops.py -m modelA.tfile modelB.tflite -c build_config.json 21``` 22 23## Input arguments 24 25***models (required)*** : 26A list of comma separated model files. 27 28Supported model formats are: 29 30* TfLite 31 32***config (optional)*** : 33The configuration file to be created on JSON format that can be provided to ComputeLibrary's 34build system and generate a library with the given list of operators and data-types 35 36***debug (optional)*** : 37Flag that enables debug information 38