Skip to content

Commit bffc031

Browse files
vishalg0wdaVishal Gowda
andauthored
Use cpu wheel for torchvision (#155)
Making it compatible with the installed torch version. Addresses build failures of the kind: RuntimeError: operator torchvision::nms does not exist Also, remove unnecessary s3torchconnector version constraint. Co-authored-by: Vishal Gowda <[email protected]>
1 parent d8983a0 commit bffc031

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/python-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: |
4949
python -m pip install --upgrade pip
5050
# Manually install CPU-only version of torch so we're not carrying around giant GPU drivers/kernels
51-
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
51+
python -m pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
5252
python -m pip install -e "s3torchconnectorclient[test]"
5353
python -m pip install -e "s3torchconnector[test]"
5454
python -m pip install -e "s3torchbenchmarking[test]"

s3torchbenchmarking/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ requires-python = ">=3.8,<3.12"
1010
readme = "README.md"
1111
dependencies = [
1212
"torch >= 2.0.1",
13-
"s3torchconnector>=1.1.1",
13+
"s3torchconnector",
1414
"hydra-core",
1515
"torchdata>=0.6.1",
1616
"torchvision",

0 commit comments

Comments
 (0)