tree: d9cabf640c166962417cfcdd3fe689ccbdb29af6 [path history] [tgz]
  1. test/
  2. ArmNNQuantizerMain.cpp
  3. CommandLineProcessor.cpp
  4. CommandLineProcessor.hpp
  5. QuantizationDataSet.cpp
  6. QuantizationDataSet.hpp
  7. QuantizationInput.cpp
  8. QuantizationInput.hpp
  9. README.md
src/armnnQuantizer/README.md

The ArmnnQuantizer

The ArmnnQuantizer is a program for loading a 32-bit float network into ArmNN and converting it into a quantized asymmetric 8-bit or quantized symmetric 16-bit network. It supports static quantization by default, dynamic quantization is enabled if CSV file of raw input tensors is provided. Run the program with no arguments to see command-line help.

Cmd:
-h--helpDisplay help messages
-f--infileInput file containing float 32 ArmNN Input Graph
-s--schemeQuantization scheme, “QAsymm8” or “QSymm16”. Default value: QAsymm8
-c--csvfileCSV file containing paths for raw input tensors for dynamic quantization. If unset, static quantization is used
-p--preserve-data-typePreserve the input and output data types. If unset, input and output data types are not preserved
-d--outdirDirectory that output file will be written to
-o--outfileArmNN output file name

Example usage:
./ArmnnQuantizer -f /path/to/armnn/input/graph/ -s “QSymm16” -c /path/to/csv/file -p 1 -d /path/to/output -o outputFileName