File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/include/mlir/Dialect/Arith/IR Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments