-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add IS_NOT_IMPLEMENTED? #334
Comments
I guess, to be able to handle it properly in Zygote it should be a singleton instead of just a constant though. |
Maybe one could even avoid 2. and just skip tests automatically if a |
I think definately a type, rather than a value. Some other thoughts. Could make it carry around some extra info with it.options include:
Should it subtype
|
Overall I support this idea, thanks for raising! Some thoughts:
My most optimistic guess is that by creating a struct will just work as we want it: essentially the |
Is this something you have time to look into right now? |
Fixed by #335. |
I thought a bit about how to solve JuliaDiff/ChainRulesTestUtils.jl#135 which showed up in JuliaMath/SpecialFunctions.jl#305.
Maybe one could avoid additional keyword arguments by
const IS_NOT_IMPLEMENTED = @thunk(error("not implemented"))
in ChainRulesCore (possibly not exported), andx ⊢ IS_NOT_IMPLEMENTED
in the tests.I assume that 1. could be useful even without 2. since it would provide an official way for declaring incomplete differential definitions. Maybe it could even be used to solve FluxML/Zygote.jl#873 without official support for ChainRules types in Zygote by dropping ChainRules derivatives silently (i.e., returning
nothing
) if they are identical toIS_NOT_IMPLEMENTED
(not completely sure if this is a good idea though since it might be a bit surprising).The text was updated successfully, but these errors were encountered: