Skip to content

Commit

Permalink
Improve docs for quantized types
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Sep 26, 2024
1 parent 633db2f commit 3df4fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Nx is a multi-dimensional tensors library for Elixir with multi-staged compilation to the CPU/GPU. Its high-level features are:

* Typed multi-dimensional tensors, where the tensors can be unsigned integers (`u2`, `u4`, `u8`, `u16`, `u32`, `u64`), signed integers (`s2`, `s4`, `s8`, `s16`, `s32`, `s64`), floats (`f16`, `f32`, `f64`), brain floats (`bf16`), and complex numbers (`c64`, `c128`);
* Typed multi-dimensional tensors, where the tensors can be unsigned integers (`u2`, `u4`, `u8`, `u16`, `u32`, `u64`), signed integers (`s2`, `s4`, `s8`, `s16`, `s32`, `s64`), floats (`f8`, `f16`, `f32`, `f64`), brain floats (`bf16`), and complex numbers (`c64`, `c128`);

* Named tensors, allowing developers to give names to each dimension, leading to more readable and less error prone codebases;

Expand Down
4 changes: 2 additions & 2 deletions nx/lib/nx/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ defmodule Nx.Type do
A type is a two-element tuple with the name and the size.
The respective sizes for the types are the following:
* `:s` - signed integer (8, 16, 32, 64)
* `:u` - unsigned integer (8, 16, 32, 64)
* `:s` - signed integer (2, 4, 8, 16, 32, 64)
* `:u` - unsigned integer (2, 4, 8, 16, 32, 64)
* `:f` - float (8, 16, 32, 64)
* `:bf` - a brain floating point (16)
* `:c` - a complex number, represented as a pair of floats (64, 128)
Expand Down

0 comments on commit 3df4fd5

Please sign in to comment.