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 semantic member accessor pullback ownership errors. #31701

Merged
merged 1 commit into from May 11, 2020

Conversation

dan-zheng
Copy link
Collaborator

Mirror of master branch PR: #31700

Fix ownership errors in semantic member accessor pullbacks:

  • Getter pullbacks: emit copy value operation before storing value.
  • Setter pullbacks: track loaded value as a temporary, to be destroyed.

Add tests covering trivial, non-trivial, and address-only properties.
Resolves SR-12778 and SR-12779.

Fixes AutoDiff/validation-test/property_wrappers.swift on tensorflow-stage branch.

Fix ownership errors in semantic member accessor pullbacks:
- Getter pullbacks: emit copy value operation before storing value.
- Setter pullbacks: track loaded value as a temporary, to be destroyed.

Add tests covering trivial, non-trivial, and address-only properties.
Resolves SR-12778 and SR-12779.

Fixes AutoDiff/validation-test/property_wrappers.swift on tensorflow-stage branch.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label May 11, 2020
@dan-zheng dan-zheng requested a review from marcrasi May 11, 2020 08:54
@dan-zheng
Copy link
Collaborator Author

Merging to fix tensorflow-stage tests.
No CI is fine since the target branch is tensorflow-stage.
Changes will be tested before merging to tensorflow.

The master branch PR will be reviewed: #31700

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

1 participant