How to use init_fun and apply_fun in MCState #1478
Replies: 1 comment 1 reply
-
So a few things:
For that to happen, however, you should provide me some code that works to initialise the network with the dropout layer and how to evaluate it during/not during training (With what kwargs to |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to add a dropout layer, for which I need to pass the rng to the apply function of the model. But I cannot figure out how to pass the init_fun and apply_fun to the
MCState
. For example (even without the dropout):I have the following error:
Click me
While I do get the output for
y=model.apply(variables=params,x=x)
, what would be the correct way to pass these functions toMCState
?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions