Skip to content

[AutoDiff] Add JVPs for tgmath functions. #29290

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 1 commit into from
Jan 18, 2020

Conversation

dan-zheng
Copy link
Contributor

Add JVPs for tgmath functions except remainder(_:_:) and fmod(_:_:).
Add tests.

JVP/VJP functions for unary tgmath functions are identical, but there is no way
to register a derivative function as both a JVP/VJP of the same original
function. TF-1111 tracks this; the issue will naturally resolve when linear
functions and transposition are done and VJPs are removed.

Partially resolves TF-1108.


Sorry, I shouldn't have taken on this starter issue. I started setting up the skeleton (with fatalErrors) and got carried away.

The TF-1107 master issue tracks other JVP definition starter issues.

Add JVPs for tgmath functions except `remainder(_:_:)` and `fmod(_:_:)`.
Add tests.

JVP/VJP functions for unary tgmath functions are identical, but there is no way
to register a derivative function as both a JVP/VJP of the same original
function. TF-1111 tracks this; the issue will naturally resolve when linear
functions and transposition are done and VJPs are removed.

Partially resolves TF-1108.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Jan 17, 2020
@dan-zheng dan-zheng requested review from marcrasi and rxwei January 17, 2020 23:37
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow macOS

@dan-zheng dan-zheng merged commit 627ac35 into swiftlang:tensorflow Jan 18, 2020
@dan-zheng dan-zheng deleted the stdlib-jvps branch January 18, 2020 03:47
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