Skip to content

[AutoDiff] Handle differentiation of @autodiff functions. #21792

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

Conversation

dan-zheng
Copy link
Contributor

Given an AutoDiffFunctionExtractInst in PrimalGen, get its VJP by
simply extracting the VJP of its function operand.

Thanks for detailed guidance from @rxwei.

Given an `AutoDiffFunctionExtractInst` in PrimalGen, get its VJP by
simply extracting the VJP of its function operand.

Thanks for detailed guidance from @rxwei.
@dan-zheng dan-zheng requested a review from rxwei January 11, 2019 10:11
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Jan 11, 2019
`autodiff_function_extract` consumes its function operand.
Thus, the function operand should be retained before `autodiff_function_extract`.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@rxwei rxwei merged commit 8bab5c9 into swiftlang:tensorflow Jan 11, 2019
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