Skip to content

Commit

Permalink
fix operand
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Feb 8, 2025
1 parent d8940ba commit c1a0a26
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 @@ -5771,7 +5771,7 @@ struct GatherSimplify final : OpRewritePattern<mlir::stablehlo::GatherOp> {

{
DenseIntElementsAttr operandVals;
if (matchPattern(operand, m_Constant(&operandVals))) {
if (matchPattern(op.getOperand(), m_Constant(&operandVals))) {
auto out = stablehlo::gatherOp(
stablehlo::constantOp(operandVals),
stablehlo::constantOp(startIndicesCst),
Expand Down

0 comments on commit c1a0a26

Please sign in to comment.