Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batched autodiff #2181

Merged
merged 22 commits into from
Dec 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
  • Loading branch information
jumerckx committed Dec 25, 2024
commit 9ceb922455b4444b1a7494bada456c4f2fb065d8
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void mlir::enzyme::detail::branchingForwardHandler(Operation *inst,
newVals.push_back(gutils->invertPointerM(op, builder));
} else {
Type retTy =
arg.getType().cast<AutoDiffTypeInterface>().getShadowType(gutils->width);
arg.getType().cast<AutoDiffTypeInterface>().getShadowType(
gutils->width);
auto toret = retTy.cast<AutoDiffTypeInterface>().createNullValue(
builder, op.getLoc());
newVals.push_back(toret);
Expand Down
Loading