Skip to content

Fix JVPs for Float *= and /= #33579

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
Aug 24, 2020
Merged

Conversation

efremale
Copy link
Contributor

@efremale efremale commented Aug 21, 2020

JVPs for *= and /= were specified incorrectly.

@efremale efremale requested a review from dan-zheng August 21, 2020 00:39
dan-zheng and others added 2 commits August 21, 2020 02:41
Previously, JVP/VJP generation used a "return undef" hack when
differential/pullback values did not match the expected return type.

This was relevant before differentiation supported "loadable types with
address-only tangent types", which was diagnosed.

Now that support for the above exists, "return undef" should be removed and
replaced with an assertion.
JVPs for `*=` and `/=` were specified incorrectly.
@efremale
Copy link
Contributor Author

@swift-ci Please test

@dan-zheng dan-zheng requested a review from rxwei August 21, 2020 02:14
Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@efremale
Copy link
Contributor Author

@dan-zheng, I still don't have the access to trigger the CI, can you please do it?

@dan-zheng
Copy link
Contributor

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - aafaf4e

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - aafaf4e

@dan-zheng
Copy link
Contributor

@swift-ci Please test

@dan-zheng dan-zheng merged commit 7fcc7ba into swiftlang:master Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants