Skip to content

Commit

Permalink
fix a few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Aug 11, 2023
1 parent 543639a commit 99f3d58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rfcs/20230622-quantized-reduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ To avoid identification of identity functions which could be tricky in general.
## Option 2: re-scale input to accumulation type

This option is the simplest from the POV for specification of quantized `reduce`
op. This is adding `stablehlo.uniform_quantize` and `stablehlo.dequantize` ops
respectively before and after reduce op which operates on the "accumulator"
type.
op. This is adding `stablehlo.uniform_quantize`ops before and after reduce op
which operates on the "accumulator" type.

```mlir
%widen = "stablehlo.uniform_quantize"(%input)
Expand All @@ -234,7 +233,7 @@ type.
}
: (tensor<... x !quant.uniform<i32:f32, ...>>) -> tensor<... x !quant.uniform<i32:f32, ...>>
%narrowed = "stablehlo.uniform_dequantize"(%reduce)
%narrowed = "stablehlo.uniform_quantize"(%reduce)
: (tensor<... x !quant.uniform<i32:f32, ...>>) -> tensor<... x !quant.uniform<ui8:f32, ...>>
```

Expand Down

0 comments on commit 99f3d58

Please sign in to comment.