How to use init_fun and apply_fun in MCState #1478
Unanswered
whatisspin
asked this question in
Q&A
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 |
1 reply
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.
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.
All reactions