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
I am having trouble understanding the apply method when used with additional parameters, such as with the hk.nets.MLP module.
I tried to implement a simple CNN architecture of several blocks of convolutions followed by a few layers of fully connected layers. Describing the network architecture and initialising the parameters works as expected.
When it comes to applying the network I am getting confused. As I understand it, the apply methods takes the parameters params and rng, followed by the parameters the untransformed function is expecting. In the case of SimpleCNN that would be inputs, dropout_rate, and rng. Do I have to pass in two rng? If so, then what is the purpose of the first rng?
The text was updated successfully, but these errors were encountered:
I am having trouble understanding the
apply
method when used with additional parameters, such as with thehk.nets.MLP
module.I tried to implement a simple CNN architecture of several blocks of convolutions followed by a few layers of fully connected layers. Describing the network architecture and initialising the parameters works as expected.
When it comes to applying the network I am getting confused. As I understand it, the
apply
methods takes the parametersparams
andrng
, followed by the parameters the untransformed function is expecting. In the case ofSimpleCNN
that would beinputs
,dropout_rate
, andrng
. Do I have to pass in tworng
? If so, then what is the purpose of the firstrng
?The text was updated successfully, but these errors were encountered: