Skip to content

Commit

Permalink
Add Elementwise trait for ReducePrecisionOp (#2063)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Natan <[email protected]>
  • Loading branch information
GleasonK and tomnatan30 authored Mar 5, 2024
1 parent 5e24843 commit b5a199f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stablehlo/dialect/StablehloOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -3126,9 +3126,9 @@ def StableHLO_UniformDequantizeOp : StableHLO_UnaryElementwiseOp<"uniform_dequan
}];
}

def StableHLO_ReducePrecisionOp :
StableHLO_Op<"reduce_precision", [Pure,
HLO_CompatibleOperandsAndResultType /*reduce_precision_c1*/]> {
def StableHLO_ReducePrecisionOp : StableHLO_Op<"reduce_precision",
[Pure, Elementwise,
HLO_CompatibleOperandsAndResultType /*reduce_precision_c1*/]> {
let summary = "ReducePrecision operation";
let description = [{
Performs element-wise conversion of `operand` to another floating-point type
Expand Down

0 comments on commit b5a199f

Please sign in to comment.