Skip to content

[AutoDiff] Fix a subset-parameters thunk parameter indexing crasher. #25699

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
Jun 24, 2019

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Jun 24, 2019

The subset parameters thunk generation logic is not handling cases where the original JVP/JVP is already producing a subset-parameters linear map. This patch fixes it by computing indices w.r.t. the linear map from indices w.r.t. the original function.

Resolves TF-594 and unblocks tensorflow/swift-apis#147.

@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Jun 24, 2019
@rxwei rxwei requested a review from dan-zheng June 24, 2019 01:45
@rxwei
Copy link
Contributor Author

rxwei commented Jun 24, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor Author

rxwei commented Jun 24, 2019

@swift-ci please test tensorflow

2 similar comments
@rxwei
Copy link
Contributor Author

rxwei commented Jun 24, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor Author

rxwei commented Jun 24, 2019

@swift-ci please test tensorflow

@rxwei rxwei merged commit 4ce1aaa into swiftlang:tensorflow Jun 24, 2019
@rxwei rxwei deleted the subset-parameters-thunk branch June 24, 2019 04:37
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.

3 participants