Skip to content

Flax.linen vs netket.nn for complex models—conflicting information between documentation #1950

Answered by PhilipVinc
wttai004 asked this question in Q&A
Discussion options

You must be logged in to vote

Flax modules do not always work well with complex numbers. For that reason, if your model has complex parameters we invite you to use netket.nn in place of flax.linen and flax.nn. netket.nn re-exports some Flax functionality ensuring that it works nicely with complex numbers. If you don’t find something from Flax in netket.nn, please open an issue in GitHub.

This comment has been outdated since a few years. We upstreamed all of our changes to flax, so you can safely use flax itself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PhilipVinc
Comment options

Answer selected by wttai004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants