tree: b93695466079ac735e2862f8c67439cf30c33015 [path history] [tgz]
  1. ArmNNQuantizerMain.cpp
  2. CommandLineProcessor.cpp
  3. CommandLineProcessor.hpp
  4. QuantizationDataSet.cpp
  5. QuantizationDataSet.hpp
  6. QuantizationInput.cpp
  7. QuantizationInput.hpp
  8. README.md
  9. test/
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