Replies: 1 comment
-
This has something to do with the nature of jax and flax, not primarily netket. Following a functional programming paradigm, parameters of the flax model are not stored as attributes of the nn.module (in this case nn.Dense). To apply a forward pass of nn.Dense use |
Beta Was this translation helpful? Give feedback.
-
I'm trying to learn this toolbox through its tutorial(transverse field Ising model), and after reading its 6th part(Neural network quantum state), when I add a snippet and tried to write
x=jnp.array([1,2,3])
dense = nn.Dense(features=x.shape[0])
y=dense(x)
to see how the input configuration will be manipulated though the network, there is an error on the 3rd line:
CallCompactUnboundModuleError: Can't call compact methods on unbound modules
I can't understand this error, how is it generated?
Beta Was this translation helpful? Give feedback.
All reactions