Skip to content

Commit

Permalink
Fix the names of arith MaximumF and MinimumF ops
Browse files Browse the repository at this point in the history
  • Loading branch information
navahgar committed Oct 18, 2023
1 parent 86cf909 commit bd1f66c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ createLinalgPayloadForElementwiseOp(Operation *op,
auto minFloat = clampOp.getMinFloat();
auto maxFloat = clampOp.getMaxFloat();
if (minFloat)
result = b.create<arith::MaxFOp>(
result = b.create<arith::MaximumFOp>(
loc, result,
b.create<arith::ConstantFloatOp>(loc, *minFloat, b.getF32Type()));
if (maxFloat)
result = b.create<arith::MinFOp>(
result = b.create<arith::MinimumFOp>(
loc, result,
b.create<arith::ConstantFloatOp>(loc, *maxFloat, b.getF32Type()));
} else if (elemType.isa<mlir::IntegerType>()) {
Expand Down

0 comments on commit bd1f66c

Please sign in to comment.