From 87d9510df5c3aabcb09ba357abc70c02ad3d5032 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Sun, 12 Jan 2025 16:51:55 -0500 Subject: [PATCH] Fix spelling --- nx/lib/nx.ex | 6 +++--- nx/lib/nx/backend.ex | 2 +- nx/lib/nx/defn.ex | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nx/lib/nx.ex b/nx/lib/nx.ex index 3162efd10c..a98d5e4d92 100644 --- a/nx/lib/nx.ex +++ b/nx/lib/nx.ex @@ -417,7 +417,7 @@ defmodule Nx do config: [nx: [default_backend: EXLA.Backend]] ) - Or by calling `Nx.global_default_backend/1` (less preferrable): + Or by calling `Nx.global_default_backend/1` (less preferable): Nx.global_default_backend(EXLA.Backend) @@ -614,7 +614,7 @@ defmodule Nx do > Certain backends and compilers support 8-bit floats. The precision - iomplementation of 8-bit floats may change per backend, so you must + implementation of 8-bit floats may change per backend, so you must be careful when transferring data across. The binary backend implements F8E5M2: @@ -7684,7 +7684,7 @@ defmodule Nx do number of indices, while `updates` must have a compatible `{n, ...j}` shape, such that `i + j = rank(tensor)`. - In case of repeating indices, the result is non-determinstic, since the operation happens + In case of repeating indices, the result is non-deterministic, since the operation happens in parallel when running on devices such as the GPU. See also: `indexed_add/3`, `put_slice/3`. diff --git a/nx/lib/nx/backend.ex b/nx/lib/nx/backend.ex index 3954028e1f..1193a0b8c4 100644 --- a/nx/lib/nx/backend.ex +++ b/nx/lib/nx/backend.ex @@ -138,7 +138,7 @@ defmodule Nx.Backend do First we will attempt to call the optional callback itself (one of the many callbacks defined below), then we attempt to call this callback (which is also optional), then we - fallback to the default iomplementation. + fallback to the default implementation. """ @callback optional(atom, [term], fun) :: tensor diff --git a/nx/lib/nx/defn.ex b/nx/lib/nx/defn.ex index e0d1cc1a30..e798fb31ab 100644 --- a/nx/lib/nx/defn.ex +++ b/nx/lib/nx/defn.ex @@ -66,7 +66,7 @@ defmodule Nx.Defn do ## JIT compilers The power of `Nx.Defn` is given by its compilers. The default - compiler is `Nx.Defn.Evaluator`, which evalutes the code. + compiler is `Nx.Defn.Evaluator`, which evaluates the code. You can use `jit/3` to compile a function on the fly using a different compiler, such as `EXLA`: