From 34d7d8eeaf4bfd9e6071ccc84ef18f989bf773da Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Fri, 18 Sep 2026 01:23:59 +0800 Subject: [PATCH] docs: update v1 installation guidance --- exla/guides/rotating-image.livemd | 2 +- exla/lib/exla.ex | 2 +- nx/README.md | 4 ++-- nx/guides/advanced/aggregation.livemd | 2 +- nx/guides/getting_started/broadcasting.livemd | 2 +- nx/guides/getting_started/installation.md | 10 +++++----- nx/guides/getting_started/introduction.md | 4 ++-- nx/guides/getting_started/numerical_definitions.livemd | 2 +- nx/guides/getting_started/quickstart.livemd | 4 ++-- torchx/README.md | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/exla/guides/rotating-image.livemd b/exla/guides/rotating-image.livemd index ff57f35480..6dbf7c2edb 100644 --- a/exla/guides/rotating-image.livemd +++ b/exla/guides/rotating-image.livemd @@ -6,7 +6,7 @@ Mix.install( {:nx, github: "elixir-nx/nx", override: true, sparse: "nx"}, {:req, "~> 0.3.5"}, {:kino, "~> 0.8.1"}, - {:exla, "~> 0.9"}, + {:exla, "~> 1.0"}, {:stb_image, "~> 0.6"} ], config: [ diff --git a/exla/lib/exla.ex b/exla/lib/exla.ex index 2de9fdf071..096e6b0621 100644 --- a/exla/lib/exla.ex +++ b/exla/lib/exla.ex @@ -28,7 +28,7 @@ defmodule EXLA do In a script/notebook, you would do: Mix.install([ - {:exla, "~> 0.2"} + {:exla, "~> 1.0"} ]) Nx.global_default_backend(EXLA.Backend) diff --git a/nx/README.md b/nx/README.md index e4a6ea5072..b67047eedd 100644 --- a/nx/README.md +++ b/nx/README.md @@ -59,7 +59,7 @@ Then you can add `Nx` as dependency in your `mix.exs`: ```elixir def deps do [ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ] end ``` @@ -68,7 +68,7 @@ If you are using Livebook or IEx, you can instead run: ```elixir Mix.install([ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ]) ``` diff --git a/nx/guides/advanced/aggregation.livemd b/nx/guides/advanced/aggregation.livemd index 6710aac059..926f796bac 100644 --- a/nx/guides/advanced/aggregation.livemd +++ b/nx/guides/advanced/aggregation.livemd @@ -4,7 +4,7 @@ ```elixir Mix.install([ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ]) ``` diff --git a/nx/guides/getting_started/broadcasting.livemd b/nx/guides/getting_started/broadcasting.livemd index 5334096275..c632165a7b 100644 --- a/nx/guides/getting_started/broadcasting.livemd +++ b/nx/guides/getting_started/broadcasting.livemd @@ -38,7 +38,7 @@ a tensor or a scalar and a shape. ```elixir Mix.install([ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ]) diff --git a/nx/guides/getting_started/installation.md b/nx/guides/getting_started/installation.md index 1bbbd1fe35..eca9fc7a77 100644 --- a/nx/guides/getting_started/installation.md +++ b/nx/guides/getting_started/installation.md @@ -14,7 +14,7 @@ If you are working inside a Mix project, the recommended way to install Nx is by ```elixir defp deps do [ - {:nx, "~> 0.9"} # Install the latest stable version + {:nx, "~> 1.0"} # Install the latest stable version ] end ``` @@ -98,8 +98,8 @@ To enable GPU/TPU acceleration with Google’s XLA backend, install Nx along wit ```elixir defp deps do [ - {:nx, "~> 0.9"}, - {:exla, "~> 0.9"} # EXLA (Google XLA Backend) + {:nx, "~> 1.0"}, + {:exla, "~> 1.0"} # EXLA (Google XLA Backend) ] end ``` @@ -128,8 +128,8 @@ To run Nx operations on PyTorch’s backend (LibTorch): ```elixir defp deps do [ - {:nx, "~> 0.9"}, - {:torchx, "~> 0.9"} # PyTorch Backend + {:nx, "~> 1.0"}, + {:torchx, "~> 1.0"} # PyTorch Backend ] end diff --git a/nx/guides/getting_started/introduction.md b/nx/guides/getting_started/introduction.md index 210ece219a..ed9b92928e 100644 --- a/nx/guides/getting_started/introduction.md +++ b/nx/guides/getting_started/introduction.md @@ -2,7 +2,7 @@ Nx is a numerical computing library in Elixir. Since Elixir's primary numerical data types and structures are not optimized for numerical programming, Nx is the fundamental package built to bridge this gap. -[Elixir Nx](https://github.com/elixir-nx/nx) smoothly integrates typed, multidimensional data called [tensors](introduction.html#what-are-tensors)). +[Elixir Nx](https://github.com/elixir-nx/nx) smoothly integrates typed, multidimensional data called [tensors](introduction.html#what-are-tensors). Nx has four primary capabilities: - Tensors hold typed data in multiple, optionally named dimensions. @@ -13,7 +13,7 @@ Nx has four primary capabilities: such as machine learning, simulations, curve fitting, and probabilistic models. - Broadcasting, which is a term for element-by-element operations. Most of the Nx operations make use of automatic implicit broadcasting. You can see more on broadcasting - [here.](intro-to-nx.html#broadcasts) + [here.](broadcasting.html) Nx tensors can hold unsigned integers (u2, u4, u8, u16, u32, u64), signed integers (s2, s4, s8, s16, s32, s64), diff --git a/nx/guides/getting_started/numerical_definitions.livemd b/nx/guides/getting_started/numerical_definitions.livemd index 5fefb4af22..ad20ea377b 100644 --- a/nx/guides/getting_started/numerical_definitions.livemd +++ b/nx/guides/getting_started/numerical_definitions.livemd @@ -25,7 +25,7 @@ like this: ```elixir Mix.install([ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ]) ``` diff --git a/nx/guides/getting_started/quickstart.livemd b/nx/guides/getting_started/quickstart.livemd index f772893515..8fab1242a4 100644 --- a/nx/guides/getting_started/quickstart.livemd +++ b/nx/guides/getting_started/quickstart.livemd @@ -26,7 +26,7 @@ First, let's install Nx with `Mix.install`. ```elixir Mix.install([ - {:nx, "~> 0.9"} + {:nx, "~> 1.0"} ]) ``` @@ -363,7 +363,7 @@ Nx.less_equal(a, b) These operations aggregate values across tensor axes. -See also [the aggregation guide](guides/advanced/aggregation.livemd) +See also [the aggregation guide](aggregation.html) for a more in-depth exploration on the subject. ### Sum diff --git a/torchx/README.md b/torchx/README.md index e95bceac46..4db909fad2 100644 --- a/torchx/README.md +++ b/torchx/README.md @@ -18,7 +18,7 @@ Then you can add `Torchx` as dependency in your `mix.exs`: ```elixir def deps do [ - {:torchx, "~> 0.9"} + {:torchx, "~> 1.0"} ] end ``` @@ -27,7 +27,7 @@ If you are using Livebook or IEx, you can instead run: ```elixir Mix.install([ - {:torchx, "~> 0.9"} + {:torchx, "~> 1.0"} ]) ```