You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tests in stablehlo/stablehlo/tests/interpret and stablehlo/stablehlo/testdata use a different syntax than what is described in the specification. Here is a grammar that describes the actual syntax of quantized types in those tests:
Dear @jtristan
I am assuming that you refer to the absence of the non terminals highlighted above. Please note that QuantizationStorageMin, QuantizationStorageMax are optional and If not present inferred from the storage type. QuantizationDimension is relevant only for per-axis quantization and absent for per-tensor. QuantizationDimension is optional if the zero-point is zero.
Please let me know if I am missing any discrepancies.
No, the discrepancies are that the spec defines the grammar of QuantizationStorageMin, QuantizationStorageMax, QuantizationDimension , QuantizationScale , and QuantizationZeroPoint respectively as IntegerConstant , IntegerConstant , IntegerConstant , FloatConstant , IntegerConstant but that it should be IntegerLiteral, IntegerLiteral, IntegerLiteral, FloatLiteral, IntegerLiteral instead. Finally, the spec doesn't capture that QuantizationZeroPoint is optional.
What happened?
The tests in
stablehlo/stablehlo/tests/interpret
andstablehlo/stablehlo/testdata
use a different syntax than what is described in the specification. Here is a grammar that describes the actual syntax of quantized types in those tests:where ** and ** emphasize where the differences with the specification are
Steps to reproduce your issue
No response
Version information
No response
The text was updated successfully, but these errors were encountered: