Skip to content
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

Fix errors with Adapt 3.3.0 #161

Merged
merged 4 commits into from
Apr 19, 2021
Merged

Fix errors with Adapt 3.3.0 #161

merged 4 commits into from
Apr 19, 2021

Conversation

devmotion
Copy link
Member

This PR fixes errors with Adapt 3.3.0 (see SciML/OrdinaryDiffEq.jl#1369 (comment) for an explanation why it broke adapt_randn).

Additionally, I used the opportunity to replace the custom rrule with @non_differentiable which now supports varargs (moreover, it defines a frule as well and uses an optimized definition with @nospecialize).

Copy link
Member

@torfjelde torfjelde left a comment

Choose a reason for hiding this comment

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

LGTM!

@torfjelde torfjelde merged commit 978b1fe into master Apr 19, 2021
@delete-merged-branch delete-merged-branch bot deleted the dw/adapt330 branch April 19, 2021 15:51
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.

2 participants