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

Widen in _grad! #66

Merged
merged 2 commits into from
Apr 20, 2022
Merged

Widen in _grad! #66

merged 2 commits into from
Apr 20, 2022

Conversation

mcabbott
Copy link
Member

Fixes a bug discovered in SciML/DiffEqFlux.jl#699, that the adjoint of re has to allow for (some of) the leaves having a wider type than the original vector.

This approach costs a copy when this happens, but is much simpler than trying to walk the tree and infer the eltype before starting.

@mcabbott mcabbott requested a review from ToucheSir April 20, 2022 01:32
@CarloLucibello
Copy link
Member

This supersedes #65

@ChrisRackauckas
Copy link
Member

Can this get a tag? I'd like to see if it fixes the last bits of SciML/DiffEqFlux.jl#699 so we can merge 0.13 support.

@CarloLucibello
Copy link
Member

Tagged

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