Question on abstract_eval_fun
#3737
-
Hi, it seems that |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
By the way, this is probably better as a GitHub discussion, not an issue. There's no action for us to take here (other than answer the question.). I suggest opening a discussion thread? |
Beta Was this translation helpful? Give feedback.
-
Actually apparently I can convert it to a discussion. Let me do that! |
Beta Was this translation helpful? Give feedback.
-
@DarrenZhang01 Even though all inputs to a partially evaluated function might be unknown, it does not imply that all outputs are unknown, because some of those outputs might not have any dependency on the inputs! A simple example would be a function like this one: def f(x):
return x * 2, jnp.ones((10,)) In this case, running |
Beta Was this translation helpful? Give feedback.
@DarrenZhang01 Even though all inputs to a partially evaluated function might be unknown, it does not imply that all outputs are unknown, because some of those outputs might not have any dependency on the inputs! A simple example would be a function like this one:
In this case, running
abstract_eval_fun
onf
would produce oneShapedArray
eval forx * 2
and oneConcreteArray
aval for thejnp.ones
result.