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
[AutoDiff] IRGen differentiability witness tables #28067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice TBDGen refactoring!
Closing TF-930 sounds good if it's no longer reproducible.
@swift-ci please test tensorflow |
@swift-ci please clean test tensorflow |
The build error looks related to the monorepo transition. I expect that rebasing this on top of the transition will fix it. I'll wait until the transition gets merged into tensorflow (it should be really soon, right?), rebase this PR, and then rerun CI on it. |
b5e6f1a
to
5201add
Compare
@swift-ci please test tensorflow |
1 similar comment
@swift-ci please test tensorflow |
@swift-ci please clean test tensorflow |
@swift-ci please test tensorflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for keeping me in the loop!
lib/AST/PrettyStackTrace.cpp
Outdated
|
||
void swift::printDifferentiabilityWitnessDescription( | ||
llvm::raw_ostream &out, const SILDifferentiabilityWitnessKey key, | ||
ASTContext &Context, bool addNewline) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASTContext &Context, bool addNewline) { | |
bool addNewline) { |
ASTContext &Context
is unused, please remove the argument here and the corresponding field from PrettyStackTraceDifferentiabilityWitness
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
9cece67
to
80b1a34
Compare
@swift-ci please test tensorflow |
1 similar comment
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow linux |
@swift-ci please test tensorflow |
Summary of changes:
LinkEntity
forSILDifferentiabilityWitnessTable
.IRGenModule::emitSILDifferentiabilityWitness
&IRGenModule::getAddrOfDifferentiabilityWitness
, which do the actual work of emitting the IR.I think this resolves TF-930, by making TBDGen incorporate the VJP/JVP generic signatures in its calculation.