We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec18d2b commit d8cc8c6Copy full SHA for d8cc8c6
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -561,9 +561,9 @@ static Value createLinalgBodyCalculationForElementwiseOp(
561
auto intMaxPlusOneFP = rewriter.create<arith::ConstantOp>(
562
loc, rewriter.getFloatAttr(
563
getElementTypeOrSelf(srcTy),
564
- APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth())
565
- .getSExtValue() +
566
- 1.0));
+ static_cast<double>(APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth())
+ .getSExtValue()) +
+ 1.0f));
567
568
auto intMax = rewriter.create<arith::ConstantOp>(
569
loc, rewriter.getIntegerAttr(
0 commit comments