Using float32 instead of float64 in netket #2172
-
|
I'm trying to use float32 to reduce memory usage. What do I need to do to change the default dtype to float32? I try "jax.config.update('jax_enable_x64', False)" in the beginning of my code but it seems not working. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
NetKet sets |
Beta Was this translation helpful? Give feedback.
-
|
Though do notice that I don't think you can get away with single precision easily. There are considerable issues in using single precision and I strongly do not recommend it. |
Beta Was this translation helpful? Give feedback.
NetKet sets
jax.config.update('jax_enable_x64', True)when you import it.setting
NETKET_ENABLE_X64=0before importing netket should disable double precision in jaxor setting
jax.config.update('jax_enable_x64', False)AFTER importing netket should address it