We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2655e commit 474cfb6Copy full SHA for 474cfb6
src/enzyme_ad/jax/Passes/EnzymeHLOOpt.cpp
@@ -3598,7 +3598,7 @@ struct PadDotGeneral : public OpRewritePattern<mlir::stablehlo::DotGeneralOp> {
3598
SmallVector<int64_t> sliceLow, sliceHigh, sliceStride;
3599
for (auto &&[pos, size] :
3600
llvm::enumerate(otherArg.getType().cast<TensorType>().getShape())) {
3601
- auto it = llvm::find_if(otherDimsToSlice, [&](auto &tup) {
+ auto it = llvm::find_if(otherDimsToSlice, [=](auto &tup) {
3602
return std::get<0>(tup) == pos;
3603
});
3604
if (it == otherDimsToSlice.end()) {
0 commit comments