In what situations should should "subfuns" be non-empty? #16351
Answered
by
jakevdp
davisyoshida
asked this question in
Q&A
-
For what JAX primitives can the first return value from subfuns, bind_params = primitive.get_bind_params(params) For the primitives I've inspected it for it's always been empty. When it's non-empty, what are the contents? |
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Jun 12, 2023
Replies: 1 comment 1 reply
-
This will basically only be non-empty for higher-order primitives, e.g. call primitives and custom jvp/vjp. If you search the JAX source code for classes that overload this method, you should be able to find all the primitives that return something non-trivial. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davisyoshida
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will basically only be non-empty for higher-order primitives, e.g. call primitives and custom jvp/vjp. If you search the JAX source code for classes that overload this method, you should be able to find all the primitives that return something non-trivial.