Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Mar 8, 2024
1 parent 10e312d commit 3aacc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enzyme_ad/jax/Passes/EnzymeHLOOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ struct AddPad final : OpRewritePattern<mlir::stablehlo::AddOp> {

if (lhs.getEdgePaddingHigh()[idx] != 0) {
starts[idx] = type.getShape()[idx] - lhs.getEdgePaddingHigh()[idx];
limits[idx] = 0;
limits[idx] = type.getShape()[idx];
auto postSlice = rewriter.create<stablehlo::SliceOp>(op.getLoc(), rhs, starts, limits, strides);
vals.push_back(postSlice);
}
Expand Down

0 comments on commit 3aacc35

Please sign in to comment.