Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

update ci with pytorch 1.9.0 (#1120)

Edgar Riba7ea0b3c8919b
diff --git a/.github/workflows/tests_cpu.yml b/.github/workflows/tests_cpu.yml
index ffa2eccd9..bf356fb96 100644
--- a/.github/workflows/tests_cpu.yml
+++ b/.github/workflows/tests_cpu.yml
@@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
- pytorch-version: [1.8.0]
+ pytorch-version: [1.9.0]
steps:
- uses: actions/checkout@v2
@@ -47,7 +47,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: [3.7]
- pytorch-version: [1.6.0, 1.7.0, 1.7.1, 1.8.0]
+ pytorch-version: [1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.9.0]
steps:
- uses: actions/checkout@v2
diff --git a/.github/workflows/tests_cpu_versions.yml b/.github/workflows/tests_cpu_versions.yml
index 8f569efae..11ea6429d 100644
--- a/.github/workflows/tests_cpu_versions.yml
+++ b/.github/workflows/tests_cpu_versions.yml
@@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
- pytorch-version: [1.6.0, 1.7.0, 1.7.1, 1.8.0]
+ pytorch-version: [1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.9.0]
steps:
- uses: actions/checkout@v2
- name: Setup conda dependencies
diff --git a/setup.py b/setup.py
index 0763d7f68..1c79d604f 100644
--- a/setup.py
+++ b/setup.py
@@ -104,7 +104,7 @@ class clean(distutils.command.clean.clean):
subprocess.call(['rm -rf dist/ build/ kornia.egg*'], shell=True)
-requirements = ['numpy', 'torch' + kornia_pt_dependencies[dep_version(version)]]
+requirements = ['numpy<=1.19', 'torch' + kornia_pt_dependencies[dep_version(version)]]
if __name__ == '__main__':