🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Bump pytorch to 2.1.1 (#2667)
João Gustavo A. Amorima18820f6f521
diff --git a/.github/actions/env/action.yml b/.github/actions/env/action.ymlindex 4d5ac6a53..e8df93f12 100644--- a/.github/actions/env/action.yml+++ b/.github/actions/env/action.yml@@ -12,7 +12,7 @@ on:pytorch-version:description: "The pytorch version desired."required: true- default: "2.1.0"+ default: "2.1.1"type: stringruns:diff --git a/.github/actions_info.md b/.github/actions_info.mdindex 0b54a8e4b..706d37965 100644--- a/.github/actions_info.md+++ b/.github/actions_info.md@@ -13,7 +13,7 @@ Use the actions:Has the inputs:- `python-version`: (string, default: `'3.11'`) the python version desired.- The version should be supported by `setup-python@v4` action.-- `pytorch-version`: (string, default: `'2.1.0`') the pytorch version desired.+- `pytorch-version`: (string, default: `'2.1.1`') the pytorch version desired.- This value will be used to install pytorch using conda from pytorchchannel.- If the value passed is `nightly` the nightly version of pytorch with dynamo@@ -35,7 +35,7 @@ Has the inputs:- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).- `python-version`: (json list of strings, default: `'["3.11"]'`) a string withformat of a json list within strings for each python version desired.-- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.1"]'`) a stringwith format of a json list within strings for each pytorch version desired.- `pytorch-dtype`: (string, default: `float32`) the dtype used to generatethe tests with pytest.@@ -62,7 +62,7 @@ Has the inputs:- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).- `python-version`: (json list of strings, default: `'["3.11"]'`) a string withformat of a json list within strings for each python version desired.-- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.1"]'`) a stringwith format of a json list within strings for each pytorch version desired.- `fail-fast`: (boolean, default: `false`) to set the `fail-fast` behavior onthe matrix strategy.@@ -81,7 +81,7 @@ Has the inputs:- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).- `python-version`: (json list of strings, default: `'["3.11"]'`) a string withformat of a json list within strings for each python version desired.-- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.1"]'`) a stringwith format of a json list within strings for each pytorch version desired.- `fail-fast`: (boolean, default: `false`) to set the `fail-fast` behavior onthe matrix strategy.@@ -99,7 +99,7 @@ Has the inputs:- `os`: (string, default: `ubuntu-latest`) the OS name same as supported by [gha](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners).- `python-version`: (json list of strings, default: `'["3.11"]'`) a string withformat of a json list within strings for each python version desired.-- `pytorch-version`: (json list of strings, default: `'["2.1.0"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.1"]'`) a stringwith format of a json list within strings for each pytorch version desired.- `fail-fast`: (boolean, default: `false`) to set the `fail-fast` behavior onthe matrix strategy.diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 84f18a477..33bd4dea9 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.0"]'+ default: '["2.1.1"]'os:required: falsetype: stringdiff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.ymlindex a8661cb63..3fb68c43f 100644--- a/.github/workflows/pr_test_cpu.yml+++ b/.github/workflows/pr_test_cpu.yml@@ -30,7 +30,7 @@ jobs:with:os: ${{ matrix.os }}python-version: '["3.8", "3.11"]'- pytorch-version: '["1.9.1", "2.1.0"]'+ pytorch-version: '["1.9.1", "2.1.1"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}@@ -39,7 +39,7 @@ jobs:uses: ./.github/workflows/tests.ymlwith:python-version: '["3.11"]'- pytorch-version: '["2.1.0"]'+ pytorch-version: '["2.1.1"]'pytorch-dtype: 'float32,float64'coverage: truepytest-extra: '--runslow'diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.ymlindex 5855d3bae..939eb73ff 100644--- a/.github/workflows/scheduled_test_cpu.yml+++ b/.github/workflows/scheduled_test_cpu.yml@@ -22,7 +22,7 @@ jobs:with:os: 'Ubuntu-latest'python-version: '["3.8", "3.9", "3.10", "3.11"]'- pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.0"]'+ pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.1"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}pytest-extra: '--runslow'@@ -38,7 +38,7 @@ jobs:with:os: 'Windows-latest'python-version: '["3.11"]'- pytorch-version: '["1.9.1", "2.1.0"]'+ pytorch-version: '["1.9.1", "2.1.1"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}tests-cpu-mac:@@ -65,7 +65,7 @@ jobs:uses: ./.github/workflows/tests.ymlwith:python-version: '["3.11"]'- pytorch-version: '["2.1.0"]'+ pytorch-version: '["2.1.1"]'pytorch-dtype: 'float32,float64'coverage: truecontinue-on-error: truediff --git a/.github/workflows/scheduled_test_cpu_half.yml b/.github/workflows/scheduled_test_cpu_half.ymlindex b01aa70e4..7ab34ee0d 100644--- a/.github/workflows/scheduled_test_cpu_half.yml+++ b/.github/workflows/scheduled_test_cpu_half.yml@@ -21,5 +21,5 @@ jobs:with:os: ${{ matrix.os }}python-version: '["3.8", , "3.11"]' # "3.9"- pytorch-version: '["2.1.0"]' # '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1"]'+ pytorch-version: '["2.1.1"]' # '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1"]'pytorch-dtype: 'float16'diff --git a/.github/workflows/test_tutorials.yml b/.github/workflows/test_tutorials.ymlindex f471510e3..b6aa8eee1 100644--- a/.github/workflows/test_tutorials.yml+++ b/.github/workflows/test_tutorials.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.0"]'+ default: '["2.1.1"]'os:required: falsetype: stringdiff --git a/.github/workflows/test_typing.yml b/.github/workflows/test_typing.ymlindex 7811bd4bc..243ab96df 100644--- a/.github/workflows/test_typing.yml+++ b/.github/workflows/test_typing.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.0"]'+ default: '["2.1.1"]'os:required: falsetype: stringdiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex be140854b..94af0ea33 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.0"]'+ default: '["2.1.1"]'os:required: falsetype: stringdiff --git a/test/filters/test_canny.py b/test/filters/test_canny.pyindex 33465dc79..1e0db42ed 100644--- a/test/filters/test_canny.py+++ b/test/filters/test_canny.py@@ -299,6 +299,12 @@ class TestCanny(BaseTester):@pytest.mark.parametrize("batch_size", [1, 2])@pytest.mark.skipif(torch_version() in {"2.0.0", "2.0.1"}, reason="Not working on 2.0")def test_dynamo(self, batch_size, kernel_size, device, dtype, torch_optimizer):+ if (+ torch_version() in {"2.1.1"}+ and dtype == torch.float64+ and (isinstance(kernel_size, int) or kernel_size[0] == kernel_size[1])+ ):+ pytest.skip("Canny compiled failing into fp64 for kernel sizes where kx and ky are equals")inpt = torch.ones(batch_size, 3, 10, 10, device=device, dtype=dtype)op = Canny(kernel_size=kernel_size)op_optimized = torch_optimizer(op)diff --git a/test/filters/test_guided.py b/test/filters/test_guided.pyindex 333c40f62..8aa8ac6c0 100644--- a/test/filters/test_guided.py+++ b/test/filters/test_guided.py@@ -90,7 +90,7 @@ class TestGuidedBlur(BaseTester):self.assert_close(op_module(guide, img), op(guide, img, kernel_size, eps, subsample=subsample))@pytest.mark.skipif(- torch_version() == "2.1.0",+ torch_version() in {"2.1.0", "2.1.1"},reason=("https://github.com/pytorch/pytorch/issues/110696 ""- Failing with: Argument of Integer should be of numeric type, got s3 + 3."