Skip to content

Commit f7c1b79

Browse files
committed
Fix docs
1 parent 3c7980d commit f7c1b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Arith/IR/ArithOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def Arith_ScalingExtFOp
12551255
inputTy = get_type(input)
12561256
assert(scaleTy.shape() == inputTy.shape() == resultTy.shape())
12571257
scale.exponent = arith.truncf(scale) : scaleTy to f8E8M0
1258-
scale.extf = arith.extf(sale.bcast) : f8E8M0 to resultTy
1258+
scale.extf = arith.extf(scale.exponent) : f8E8M0 to resultTy
12591259
input.extf = arith.extf(input) : inputTy to resultTy
12601260
result = arith.mulf(scale.extf, input.extf)
12611261
```
@@ -1375,7 +1375,7 @@ def Arith_ScalingTruncFOp
13751375
inputETy = get_type(input)
13761376
resultETy = get_type(result)
13771377
// prepare Scale values with normalization and clamping
1378-
scale.exponent = arith.truncf(scale.bcst) : scaleETy to f8E8M0
1378+
scale.exponent = arith.truncf(scale) : scaleETy to f8E8M0
13791379
scale.extf = arith.extf(scale.exponent) : f8E8M0 to inputETy
13801380
// emax is calculated as exponent of the largest normal value in quantized type.
13811381
scale.normalize = arith.divf(scale.extf, emax)

0 commit comments

Comments
 (0)