Correct way to initialize model #2868
-
I initialize my model as follows:
My input is of dims=
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @averageFlaxUser, most Flax layers support multiple batch dimensions and even having no batch dimension. That said to be safe I usually initialize with a batch dimension of |
Beta Was this translation helpful? Give feedback.
Hey @averageFlaxUser, most Flax layers support multiple batch dimensions and even having no batch dimension. That said to be safe I usually initialize with a batch dimension of
1
sojnp.ones([1, 784])
is probably what I would use.