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

Handle ChainRulesCore.NotImplemented #1205

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

devmotion
Copy link
Collaborator

Return nothing instead of ChainRulesCore.NotImplemented, similar to e.g. ChainRules.AbstractZero.

While this means - once again - dropping information present in CR types and hence makes the type less useful when used together with Zygote, it fixes problems such as #1204 that occur because Zygote pullbacks do not handle NotImplemented. nothing, however, is already supported throughout Zygote.

Fixes #1204.

@devmotion
Copy link
Collaborator Author

The test error with Julia nightly seems unrelated.

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.

AD error due to interaction of missing gradient of besselk and struct with vector
2 participants