Skip to content

[AutoDiff] Fix AD diagnostics tracking. #21788

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

Merged
merged 1 commit into from
Jan 11, 2019

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Jan 11, 2019

Fix DifferentiationInvoker so that errors are guaranteed to be reported in the differentiation pass.

@rxwei rxwei requested a review from dan-zheng January 11, 2019 03:36
@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Jan 11, 2019
@rxwei
Copy link
Contributor Author

rxwei commented Jan 11, 2019

@swift-ci please test tensorflow

Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hurray for fixed diagnostics!

@@ -3439,7 +3464,7 @@ class AdjointEmitter final : public SILInstructionVisitor<AdjointEmitter> {
// TODO: Change this to a note when we emit an error at the @autodiff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this TODO note be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I think I’ll get rid of em in my next PR since CI has passed.

@rxwei rxwei merged commit baf3547 into swiftlang:tensorflow Jan 11, 2019
@rxwei rxwei deleted the ad-diagnostics-fix branch January 11, 2019 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants