elixir-nx / nx

Multi-dimensional arrays (tensors) and numerical definitions for Elixir
2.55k stars 190 forks source link

Default integers to 32-bit precision #1491

Open jonatanklosko opened 1 month ago

jonatanklosko commented 1 month ago

This way tensors require less memory by default and people can opt-in if they work with really big numbers. We already default to 32-bit precision for floats. Sidenote: Jax does that too and even guards 64-bit precision behind a configuration flag.