From 9481227398ead963217f7af7f8bd8470acb94e2d Mon Sep 17 00:00:00 2001 From: vfdev Date: Fri, 27 Sep 2024 10:54:49 +0200 Subject: [PATCH] [CI] Fixed failing linkcheck, w&b init (#3287) * [CI] Fixed failing linkcheck, w&b init * Fixed pytorch cpu installation link to avoid downloading nvidia libs --- .github/workflows/hvd-tests.yml | 2 +- .github/workflows/install_docs_deps.sh | 2 +- .github/workflows/unit-tests.yml | 4 ++-- ignite/handlers/wandb_logger.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/hvd-tests.yml b/.github/workflows/hvd-tests.yml index 35e107f888b..2733250faf8 100644 --- a/.github/workflows/hvd-tests.yml +++ b/.github/workflows/hvd-tests.yml @@ -62,7 +62,7 @@ jobs: run: | #install other dependencies - pip install torch torchvision -f https://download.pytorch.org/whl/cpu/torch_stable.html + pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu pip install -r requirements-dev.txt pip install horovod python setup.py install diff --git a/.github/workflows/install_docs_deps.sh b/.github/workflows/install_docs_deps.sh index 52ba063cef2..499b6421194 100644 --- a/.github/workflows/install_docs_deps.sh +++ b/.github/workflows/install_docs_deps.sh @@ -1,6 +1,6 @@ # remove pkg-resources as it causes failure when installing https://github.com/pytorch-ignite/sphinxcontrib-versioning pip uninstall -y pkg-resources setuptools && pip install --upgrade setuptools pip wheel -pip install torch torchvision -f https://download.pytorch.org/whl/cpu/torch_stable.html -U +pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu -U pip install -r requirements-dev.txt pip install -r docs/requirements.txt pip install git+https://github.com/pytorch-ignite/sphinxcontrib-versioning.git diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 0b94e0d0e9e..feacc642ffb 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -83,11 +83,11 @@ jobs: - name: Install PyTorch if: ${{ matrix.pytorch-channel == 'pytorch' }} - run: pip install torch torchvision -f https://download.pytorch.org/whl/cpu/torch_stable.html + run: pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu - name: Install PyTorch (nightly) if: ${{ matrix.pytorch-channel == 'pytorch-nightly' }} - run: pip install torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html --pre + run: pip install torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu --pre - name: Install dependencies run: | diff --git a/ignite/handlers/wandb_logger.py b/ignite/handlers/wandb_logger.py index 0264f27d8c9..89675c00fe7 100644 --- a/ignite/handlers/wandb_logger.py +++ b/ignite/handlers/wandb_logger.py @@ -26,7 +26,7 @@ class WandBLogger(BaseLogger): Args: args: Positional arguments accepted by `wandb.init`. kwargs: Keyword arguments accepted by `wandb.init`. - Please see `wandb.init `_ for documentation of possible parameters. + Please see `wandb.init `_ for documentation of possible parameters. Examples: .. code-block:: python