Skip to content

[AutoDiff] Support differentiating global constant closures. #22004

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 4 commits into from
Jan 20, 2019

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Jan 20, 2019

  • When there is a reference to a global let closure, we find its initializer in @main, trace back to the original function_ref, and differentiate that.

  • NFC: Refactor findReferenceToVisibleFunction and findWitnessMethod to a single template.

Resolves SR-9695.

* When there is a reference to a global `let` closure, we find its initializer in `@main`, trace back to the original `function_ref`, and differentiate that.

* NFC: Refactor `findReferenceToVisibleFunction` and `findWitnessMethod` to a single template.
@rxwei rxwei requested a review from dan-zheng January 20, 2019 00:48
@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 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.

Great!

@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Jan 20, 2019
@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 2019

@swift-ci please test tensorflow

3 similar comments
@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor Author

rxwei commented Jan 20, 2019

@swift-ci please test tensorflow

@rxwei rxwei merged commit 92cc593 into swiftlang:tensorflow Jan 20, 2019
@rxwei rxwei deleted the func-val-global-diff branch January 21, 2019 05:07
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