Replies: 2 comments
-
JAX cannot act on dynamically-sized arrays, where by "dynamically sized" we mean arrays whose length depends on the value of traced inputs. Your code appears intended to do exactly this, and so it cannot be used in JAX. Typical workarounds involve either (1) marking problematic arguments as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using jax and flax for a deep-learning problem.
During the training, I have a loss function which contains jnp.arange function with tracer as argument :
where
p
,diameter
,blur
andscaling
are essentially TracedArray.However, this causes the ConcretizationTypeError as following :
Would there be a way to circumvent this issue?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions