Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

drop support `torch<2.0.0` (#3186)

João G. Atkinson A.886b180ddd8d
diff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.yml
index 6a0cd7584..3f49d494f 100644
--- a/.github/workflows/pr_test_cpu.yml
+++ b/.github/workflows/pr_test_cpu.yml
@@ -47,7 +47,7 @@ jobs:
with:
os: ${{ matrix.os }}
python-version: '["3.9", "3.12"]'
- pytorch-version: '["1.9.1", "2.5.1"]'
+ pytorch-version: '["2.0.1", "2.5.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
cache-path: weights/
cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}
diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.yml
index 5e8eb9c9d..0616b4d68 100644
--- a/.github/workflows/scheduled_test_cpu.yml
+++ b/.github/workflows/scheduled_test_cpu.yml
@@ -45,7 +45,7 @@ jobs:
with:
os: 'Ubuntu-latest'
python-version: '["3.9", "3.10", "3.11", "3.12"]'
- pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.2", "2.2.2", "2.3.1", "2.4.0", "2.5.1"]'
+ pytorch-version: '["2.0.1", "2.1.2", "2.2.2", "2.3.1", "2.4.0", "2.5.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
pytest-extra: '--runslow'
cache-path: weights/
@@ -65,7 +65,7 @@ jobs:
with:
os: 'Windows-latest'
python-version: '["3.12"]'
- pytorch-version: '["1.9.1", "2.5.1"]'
+ pytorch-version: '["2.0.1", "2.5.1"]'
pytorch-dtype: ${{ matrix.pytorch-dtype }}
cache-path: weights/
cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index 730b0ba93..b1b216116 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -1,3 +1,3 @@
kornia_rs>=0.1.9
packaging
-torch>=1.9.1
+torch>=2.0.0