We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
New StablehloLegalizeQDQToQuantizedOpPass (#2478)
d8ad016
`StablehloLegalizeQDQToQuantizedOpPass` composes StableHLO quantized op using uniform quantize/dequantize ops. ```mlir func.func @add(%arg0: tensor<16x16x!quant.uniform<ui8:f32, 34.0:16>>) -> tensor<16x16x!quant.uniform<ui8:f32, 34.0:16>> { %0 = stablehlo.uniform_dequantize %arg0 : (tensor<16x16x!quant.uniform<ui8:f32, 34.0:16>>) -> tensor<16x16xf32> %1 = stablehlo.abs %0 : tensor<16x16xf32> %2 = stablehlo.uniform_quantize %1 : (tensor<16x16xf32>) -> tensor<16x16x!quant.uniform<ui8:f32, 34.0:16>> func.return %2 : tensor<16x16x!quant.uniform<ui8:f32, 34.0:16>> } ``` Will become: ```mlir func.func @add(%arg0: tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>>) -> tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>> { %0 = stablehlo.abs %arg0 : tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>> return %0 : tensor<16x16x!quant.uniform<u8:f32, 3.400000e+01:16>> } ``` created #2485 to track extending this pass to support more patterns
abhigunj
No branches or pull requests
The text was updated successfully, but these errors were encountered: