diff --git a/nx/lib/nx/defn.ex b/nx/lib/nx/defn.ex index 6eca6696e7..1061ae38ab 100644 --- a/nx/lib/nx/defn.ex +++ b/nx/lib/nx/defn.ex @@ -120,7 +120,7 @@ defmodule Nx.Defn do deftransformp custom_elixir_code(value), do: IO.inspect(value) The only difference between using `deftransform` and `deftransformp` - is wether you want to expose and share the code with other modules, + is whether you want to expose and share the code with other modules, just like `def` and `defp`. Transforms are useful to manipulate tensor expressions or diff --git a/nx/lib/nx/random.ex b/nx/lib/nx/random.ex index f787fd0072..bb95b6e213 100644 --- a/nx/lib/nx/random.ex +++ b/nx/lib/nx/random.ex @@ -738,7 +738,7 @@ defmodule Nx.Random do * `:axis` - the axis along which to shuffle. Defaults to `0` - * `:independent` - a boolean that indicates wether the permutations + * `:independent` - a boolean that indicates whether the permutations are independent along the given axis. Defaults to `false` ## Examples