Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 9, 2024
1 parent e6d146c commit 77055d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/MLIR/Interfaces/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ FunctionOpInterface mlir::enzyme::MEnzymeLogic::CreateForwardDiff(
for (auto act : RetActivity) {
returnShadows.push_back(act != DIFFE_TYPE::CONSTANT);
}
SmallVector<bool> returnPrimalsP(returnPrimals);
SmallVector<bool> returnShadowsP(returnShadows);
SmallVector<bool> returnPrimalsP(returnPrimals.begin(), returnPrimals.end());
SmallVector<bool> returnShadowsP(returnShadows.begin(), returnPrimals.end());
auto gutils = MDiffeGradientUtils::CreateFromClone(
*this, mode, width, fn, TA, type_args, returnPrimalsP, returnShadowsP,
RetActivity, ArgActivity, addedType,
Expand Down
4 changes: 2 additions & 2 deletions enzyme/Enzyme/MLIR/Interfaces/EnzymeLogicReverse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ FunctionOpInterface MEnzymeLogic::CreateReverseDiff(
llvm_unreachable("Differentiating empty function");
}

SmallVector<bool> returnPrimalsP(returnPrimals);
SmallVector<bool> returnShadowsP(returnShadows);
SmallVector<bool> returnPrimalsP(returnPrimals.begin(), returnPrimals.end());
SmallVector<bool> returnShadowsP(returnShadows.begin(), returnPrimals.end());

MGradientUtilsReverse *gutils = MGradientUtilsReverse::CreateFromClone(
*this, mode, width, fn, TA, type_args, returnPrimalsP, returnShadowsP,
Expand Down

0 comments on commit 77055d1

Please sign in to comment.