Skip to content

Commit

Permalink
add test with unknown number of iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw committed Dec 21, 2024
1 parent b603993 commit 10186d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ struct ForOpEnzymeOpsRemover

auto newType =
info.cachedType().cast<AutoDiffTypeInterface>().getShadowType(
numIters.value());
numIters.value_or(ShapedType::kDynamic));
enzyme::InitOp newInit = ({
OpBuilder::InsertionGuard guard(builder);
builder.setInsertionPoint(info.initOp);
Expand Down

0 comments on commit 10186d5

Please sign in to comment.