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
remove stale enzyme-tblgen changes
  • Loading branch information
jumerckx committed Dec 16, 2024
commit f860e196a8fa4c0bda4d433b1653d96fd1ccd2f7
7 changes: 0 additions & 7 deletions enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1819,13 +1819,6 @@ static void emitDerivatives(const RecordKeeper &recordKeeper, raw_ostream &os,
os << " LogicalResult createForwardModeTangent(Operation *op0, "
"OpBuilder &builder, MGradientUtils *gutils) const {\n";
os << " auto op = cast<" << dialect << "::" << opName << ">(op0);\n";
os << " if (gutils->width != 1) {\n"
<< " auto newop = gutils->getNewFromOriginal(op0);\n"
<< " for (auto res : newop->getResults()) {\n"
<< " res.setType(mlir::RankedTensorType::get({gutils->width}, "
"res.getType()));\n"
<< " }\n"
<< " }\n";
origName = "op";
break;
}
Expand Down