function
hpx analyze
PythonAnalyze model compute/parameter breakdown (no hardware needed)
hpx analyze [OPTIONS] MODELArguments
| Argument | Type | Description |
|---|---|---|
model | Path | Path to .tflite model file Required. |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--engine | tflm | helia-rt | helia-aot | executorch | Analyze as this engine would execute it. Default (no flag) uses the raw tflite graph. 'helia-aot' runs AOT compilation and analyzes the transformed graph. 'helia-rt' analyzes the original tflite graph. | |
--compare | bool | false | Show side-by-side comparison of original vs engine-transformed graph |
--format | table | csv | json | table | Output format (default: table) |
--output, -o | Optional[Path] | Write output to file | |
--board | str | apollo510_evb | Target board for AOT compilation (default: apollo510_evb) |
Examples
Analyze a .tflite model without hardware:
hpx analyze model.tflite
hpx analyze model.tflite --engine helia-aot --board apollo510_evb
hpx analyze model.tflite --format csv --output analysis.csv
hpx analyze model.tflite --engine helia-aot --compare