-
Notifications
You must be signed in to change notification settings - Fork 89
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
Remove bad non-differentiable #604
base: main
Are you sure you want to change the base?
Conversation
Looks like this currently causes some downstream issues -- will attempt to isolate the particular rules that we need to keep Zygote and Diffractor tests passing. |
Diffractor never passes. Zygote failures are things like this:
for which the immediate fix is that there should be rules something like
|
This seems suprising since the PR does not touch Edit: Ah, probably |
Yes, the method is:
If we allow I'd rather not have any of these mutating functions, but removing them might break too many things. |
Stumbled on this after a long dive (w/ help from Zack Li and Brian Chen on Slack) trying to understand this incorrectly dropped gradient: gradient(σ -> sum(rand(Xoshiro(1), MvNormal(zeros(2), σ*I))), 1) # nothing Conversely, with this PR, instead of dropping it, you (correctly) get an error since the |
Resolves #603