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

Skip differentiation of terms needed in SplineLayer #82

Merged
merged 3 commits into from
Jan 12, 2021

Conversation

ChrisRackauckas
Copy link
Member

These happen to be the ones that Zygote could already handle and do not have numerical stability issues.

https://github.com/SciML/DiffEqFlux.jl/blob/e7cbc6170429c2e72b59f0bdda832845431d378f/src/spline_layer.jl#L19-L20

We should extend the rrule to include derivatives of the coefficients instead of the DoesNotExist() as it will decrease the complexity on the source code rewriting and ensure we get numerical stability, but for now this gets tests passing.

These happen to be the ones that Zygote could already handle and do not have numerical stability issues.

https://github.com/SciML/DiffEqFlux.jl/blob/e7cbc6170429c2e72b59f0bdda832845431d378f/src/spline_layer.jl#L19-L20

We should extend the rrule to include derivatives of the coefficients instead of the `DoesNotExist()` as it will decrease the complexity on the source code rewriting and ensure we get numerical stability, but for now this gets tests passing.
@ChrisRackauckas ChrisRackauckas merged commit 5232627 into master Jan 12, 2021
@ChrisRackauckas ChrisRackauckas deleted the simple_adjoints branch January 12, 2021 05:25
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.

None yet

1 participant