Skip to content

[AutoDiff] Fix forward-mode crashes related to tangent buffers #33868

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 2 commits into from
Sep 9, 2020

Conversation

dan-zheng
Copy link
Contributor

Cherry-pick of #33633 to tensorflow branch.


Fixes foward-mode crashed related to:

  • Missing tangent buffers for non-wrt inout parameters.
  • Tangent buffers not being initialized due to the corresponding original
    buffer intialization instructions being non-active.
  • Non-varied indirect results not being initialized.
  • emitDestroyValue crashes due to TangentVector value category mismatch.

Resolves TF-984 and SR-13447.

Fixes foward-mode crashed related to:
- Missing tangent buffers for non-wrt `inout` parameters.
- Tangent buffers not being initialized due to the corresponding original
  buffer intialization instructions being non-active.
- Non-varied indirect results not being initialized.
- `emitDestroyValue` crashes due to `TangentVector` value category mismatch.

Resolves TF-984 and SR-13447.

Co-authored-by: Dan Zheng <[email protected]>
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Sep 9, 2020
@dan-zheng dan-zheng requested a review from efremale September 9, 2020 15:50
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

1 similar comment
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

Test failures are known (missing CI machine dependencies) and unrelated. Merging now.

@dan-zheng dan-zheng merged commit ce56277 into swiftlang:tensorflow Sep 9, 2020
@dan-zheng dan-zheng deleted the tensorflow-autodiff branch September 9, 2020 23:14
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