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

[AutoDiff] Fix 'autodiff_function_extract' operand ownership kind. #27638

Merged
merged 4 commits into from Oct 12, 2019

Conversation

rxwei
Copy link
Member

@rxwei rxwei commented Oct 12, 2019

ValueOwnershipKindClassifier and OperandOwnershipKindClassifier should have the same classification for autodiff_function_extract. ValueOwnershipKindClassifier's classification was fixed by #27199, which gave the correct ownership verification results. Now we fix it in OperandOwnershipKindClassifier.

DifferentiableFunctionExtractOriginalExpr's SILGen is now corrected to borrowing the argument and emitting a copy for the extracted original function.

`ValueOwnershipKindClassifier` and `OperandOwnershipKindClassifier` should have the same classification for `autodiff_function_extract`.
@rxwei rxwei requested a review from dan-zheng October 12, 2019 01:17
@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Oct 12, 2019
@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

3 similar comments
@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Member Author

rxwei commented Oct 12, 2019

@swift-ci please test tensorflow macOS

@rxwei rxwei merged commit 7e03973 into apple:tensorflow Oct 12, 2019
@rxwei rxwei deleted the fix-ownership branch October 12, 2019 06:32
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.

None yet

2 participants