No crash in JIT? I was expecting one.... #15236
Unanswered
jecampagne
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Thanks for the question! Properties of arrays like shapes, sizes, and dtypes are always static within JAX, so they can be used to define other static quantities. Does that make sense? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Although astonishing sometimes I am curious to know why a code is not crashing :)
In the thread of trace-time constant and this DOC, I was expecting a JIT crash for this example
When no JIT is activated:
leads to
And I am curious to see that
jit(exo2)(x)
does not crash and leads toI was (wrongly) expected that the
n
variable cannot be estimated at compile time ? I probably missed something.Beta Was this translation helpful? Give feedback.
All reactions