The test file names have 1-1- correspondence with its input file name appended with _qi8 appended, suggesting that all the quantized program involves i8 as storage type.
The constant argument fed to each test file is the same as that fed to the input program.
A few limitations
Currently we are using the Stablehlo Quantizer to generate quantized program which currently supports quantization of f32 floating point programs only. In future this case be improved.
Corollary: If the input test files have non-f32 based pograms, then it will be preserved unquantized in the output file. That is why we can see some of the generated files have non-quantized programs as well.
Add quantized tests for the following stablehlo operations
A few details
testdata-generator
tool which takes an input a non-quantized program file from https://github.com/openxla/stablehlo/tree/main/stablehlo/tests/interpret or https://github.com/openxla/stablehlo/tree/main/stablehlo/testdata and generates a quantized program file in the same format as the input file._qi8
appended, suggesting that all the quantized program involvesi8
as storage type.A few limitations
f32
floating point programs only. In future this case be improved.testdata-generator
tool currently supports, but in very near future we can expect the tool to work on input test files with mutiple operations being tested.Keep an eye on more quantized tests to be populated!