-
I'm trying to wrap my head around the concept of module arguments in Flax. I've read the design notes and got a few questions about Dropout layer and its
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You would usually use Also note that if we used |
Beta Was this translation helpful? Give feedback.
You would usually use
deterministic=False
for training anddeterministic=True
for evaluation. And since you compile the entire training step and evaluation step, you'll get a recompile anyways.Also note that if we used
jax.lax.cond
for implementation of the actual dropout, we would still have the codepaths for generating rngs etc (which would in turn require passing a dropout rng for evaluation etc) in Dropout.