Skip to content

Commit 3df4fd5

Browse files
committed
Improve docs for quantized types
1 parent 633db2f commit 3df4fd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

7-
* 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`);
7+
* 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`);
88

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

nx/lib/nx/type.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ defmodule Nx.Type do
55
A type is a two-element tuple with the name and the size.
66
The respective sizes for the types are the following:
77
8-
* `:s` - signed integer (8, 16, 32, 64)
9-
* `:u` - unsigned integer (8, 16, 32, 64)
8+
* `:s` - signed integer (2, 4, 8, 16, 32, 64)
9+
* `:u` - unsigned integer (2, 4, 8, 16, 32, 64)
1010
* `:f` - float (8, 16, 32, 64)
1111
* `:bf` - a brain floating point (16)
1212
* `:c` - a complex number, represented as a pair of floats (64, 128)

0 commit comments

Comments
 (0)