diff --git a/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp b/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp index 1a23d02f32b7..0863ede83dc1 100644 --- a/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp @@ -60,12 +60,14 @@ struct ConvertBatchMmt4DtoMmt4DPattern } auto lhsType = lhs.getType().cast(); - auto reducedLhsType = RankedTensorType::Builder(lhsType).dropDim(0); + RankedTensorType reducedLhsType = + RankedTensorType::Builder(lhsType).dropDim(0); auto reducedLhs = tensor::createCanonicalRankReducingExtractSliceOp( rewriter, loc, lhs, reducedLhsType); auto rhsType = rhs.getType().cast(); - auto reducedRhsType = RankedTensorType::Builder(rhsType).dropDim(0); + RankedTensorType reducedRhsType = + RankedTensorType::Builder(rhsType).dropDim(0); auto reducedRhs = tensor::createCanonicalRankReducingExtractSliceOp( rewriter, loc, rhs, reducedRhsType);