Skip to content

Commit

Permalink
Fix ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Wu committed Aug 11, 2023
1 parent eda8687 commit 9510206
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ struct ConvertBatchMmt4DtoMmt4DPattern
}

auto lhsType = lhs.getType().cast<RankedTensorType>();
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<RankedTensorType>();
auto reducedRhsType = RankedTensorType::Builder(rhsType).dropDim(0);
RankedTensorType reducedRhsType =
RankedTensorType::Builder(rhsType).dropDim(0);
auto reducedRhs = tensor::createCanonicalRankReducingExtractSliceOp(
rewriter, loc, rhs, reducedRhsType);

Expand Down

0 comments on commit 9510206

Please sign in to comment.