You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why jit(model.apply) throws a concretisation error if nn.Module fields are pushed through any jnp functions. And at the same time, same operations with np functions don't raise jit errors?
Is there a workaround to make jit(model.apply) work when pushing model fields through jnp functions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can somebody please explain to me
why
jit(model.apply)
throws a concretisation error if nn.Module fields are pushed through anyjnp
functions. And at the same time, same operations withnp
functions don't raisejit
errors?Is there a workaround to make
jit(model.apply)
work when pushing model fields throughjnp
functions?A minimal example follows. Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions