Skip to content

Commit 04e0fe3

Browse files
committed
Update torchvision to 0.17.1
1 parent 572c79e commit 04e0fe3

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[rules]]
2-
version = '== 0.14.1'
3-
patch = 'torchvision-1.14.1.patch'
2+
version = '== 0.17.1'
3+
patch = 'torchvision-1.17.1.patch'
44

55
[[add-sources]]
6-
version = '0.14.1'
7-
url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.14.1.tar.gz'
6+
version = '0.17.1'
7+
url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.17.1.tar.gz'

graalpython/lib-graalpython/patches/torchvision/torchvision-1.14.1.patch

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 61e4a95..1b05805 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -15,4 +15,4 @@ excludes = [
6+
7+
[build-system]
8+
9+
-requires = ["setuptools", "torch", "wheel"]
10+
+requires = ["setuptools", "torch>2", "wheel"]
11+
diff --git a/setup.py b/setup.py
12+
index ce1cd90..511affd 100644
13+
--- a/setup.py
14+
+++ b/setup.py
15+
@@ -53,9 +53,10 @@ def write_version_file():
16+
f.write(" cuda = _check_cuda_version()\n")
17+
18+
19+
-pytorch_dep = "torch"
20+
-if os.getenv("PYTORCH_VERSION"):
21+
- pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
22+
+# pytorch_dep = "torch"
23+
+# if os.getenv("PYTORCH_VERSION"):
24+
+# pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
25+
+pytorch_dep = f'torch >= {torch.__version__}'
26+
27+
requirements = [
28+
"numpy",

0 commit comments

Comments
 (0)