@@ -1055,10 +1055,10 @@ static TypedAttr createInitialValueForReduceOp(Operation *op, Type elementTy,
10551055 if (isa<tosa::ReduceSumOp>(op) && isa<IntegerType>(elementTy))
10561056 return rewriter.getIntegerAttr (elementTy, 0 );
10571057
1058- if (isa<tosa::ReduceProdOp >(op) && isa<FloatType>(elementTy))
1058+ if (isa<tosa::ReduceProductOp >(op) && isa<FloatType>(elementTy))
10591059 return rewriter.getFloatAttr (elementTy, 1.0 );
10601060
1061- if (isa<tosa::ReduceProdOp >(op) && isa<IntegerType>(elementTy))
1061+ if (isa<tosa::ReduceProductOp >(op) && isa<IntegerType>(elementTy))
10621062 return rewriter.getIntegerAttr (elementTy, 1 );
10631063
10641064 if (isa<tosa::ReduceMinOp>(op) && isa<FloatType>(elementTy))
@@ -1112,11 +1112,11 @@ static Value createLinalgBodyCalculationForReduceOp(Operation *op,
11121112 return rewriter.create <arith::AddIOp>(loc, args);
11131113 }
11141114
1115- if (isa<tosa::ReduceProdOp >(op) && isa<FloatType>(elementTy)) {
1115+ if (isa<tosa::ReduceProductOp >(op) && isa<FloatType>(elementTy)) {
11161116 return rewriter.create <arith::MulFOp>(loc, args);
11171117 }
11181118
1119- if (isa<tosa::ReduceProdOp >(op) && isa<IntegerType>(elementTy)) {
1119+ if (isa<tosa::ReduceProductOp >(op) && isa<IntegerType>(elementTy)) {
11201120 return rewriter.create <arith::MulIOp>(loc, args);
11211121 }
11221122
@@ -2874,7 +2874,7 @@ void mlir::tosa::populateTosaToLinalgConversionPatterns(
28742874 ReduceConverter<tosa::ReduceMinOp>,
28752875 ReduceConverter<tosa::ReduceMaxOp>,
28762876 ReduceConverter<tosa::ReduceSumOp>,
2877- ReduceConverter<tosa::ReduceProdOp >,
2877+ ReduceConverter<tosa::ReduceProductOp >,
28782878 ArgMaxConverter,
28792879 GatherConverter,
28802880 RescaleConverter,
0 commit comments