From 31441ef9dbb7588e8dd280469d922191b7507193 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 17 Oct 2024 08:28:51 -0700 Subject: [PATCH] Correct pytorch-to-torch reference in docs (#8291) --- docs/configuration/indexes.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/configuration/indexes.md b/docs/configuration/indexes.md index e154e8644..7c4b0168e 100644 --- a/docs/configuration/indexes.md +++ b/docs/configuration/indexes.md @@ -56,20 +56,20 @@ disambiguated by environment markers: ```toml title="pyproject.toml" [project] -dependencies = ["pytorch"] +dependencies = ["torch"] [tool.uv.sources] -pytorch = [ - { index = "torch-cu118", marker = "sys_platform == 'darwin'"}, - { index = "torch-cu124", marker = "sys_platform != 'darwin'"}, +torch = [ + { index = "pytorch-cu118", marker = "sys_platform == 'darwin'"}, + { index = "pytorch-cu124", marker = "sys_platform != 'darwin'"}, ] [[tool.uv.index]] -name = "torch-cu118" +name = "pytorch-cu118" url = "https://download.pytorch.org/whl/cu118" [[tool.uv.index]] -name = "torch-cu124" +name = "pytorch-cu124" url = "https://download.pytorch.org/whl/cu124" ```