Skip to content

Commit

Permalink
Added source pytorch_cpu to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mivanit committed Jul 24, 2023
1 parent 39e8109 commit 7af61d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
curl -sSL https://install.python-poetry.org | python3 -
poetry lock --check
export CUDA_VISIBLE_DEVICES=0
poetry add torch@${{ matrix.versions.torch }}+cpu --source https://download.pytorch.org/whl/cpu
poetry add torch@${{ matrix.versions.torch }}+cpu --source torch_cpu
poetry install --all-extras
- name: tests
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ matplotlib = "^3.0.0"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[[tool.poetry.source]]
name = "torch_cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"

# TODO: make all of the following ignored across all formatting/linting
# tests/input_data, tests/junk_data, muutils/_wip

Expand Down

0 comments on commit 7af61d6

Please sign in to comment.