🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
bump torch `2.1.2` (#2742)
João Gustavo A. Amorim3fdeea4a6616
diff --git a/.github/actions/env/action.yml b/.github/actions/env/action.ymlindex e8df93f12..454c68fa8 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.1"+ default: "2.1.2"type: stringruns:diff --git a/.github/actions_info.md b/.github/actions_info.mdindex 706d37965..f663c6d3c 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.1`') the pytorch version desired.+- `pytorch-version`: (string, default: `'2.1.2`') 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.1"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.2"]'`) 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.1"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.2"]'`) 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.1"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.2"]'`) 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.1"]'`) a string+- `pytorch-version`: (json list of strings, default: `'["2.1.2"]'`) 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 33bd4dea9..c8d2d49a6 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.1"]'+ default: '["2.1.2"]'os:required: falsetype: stringdiff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.ymlindex 118c13534..d86b4c45c 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.1"]'+ pytorch-version: '["1.9.1", "2.1.2"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}@@ -39,7 +39,7 @@ jobs:uses: ./.github/workflows/tests.ymlwith:python-version: '["3.11"]'- pytorch-version: '["2.1.1"]'+ pytorch-version: '["2.1.2"]'pytorch-dtype: 'float32,float64'coverage: truepytest-extra: '--runslow'diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.ymlindex ed200b6c0..ecb53943d 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.1"]'+ pytorch-version: '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1", "2.0.1", "2.1.2"]'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.1"]'+ pytorch-version: '["1.9.1", "2.1.2"]'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.1"]'+ pytorch-version: '["2.1.2"]'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 7ab34ee0d..00c5c6824 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.1"]' # '["1.9.1", "1.10.2", "1.11.0", "1.12.1", "1.13.1"]'+ pytorch-version: '["2.1.2"]' # '["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 b6aa8eee1..d3157cc97 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.1"]'+ default: '["2.1.2"]'os:required: falsetype: stringdiff --git a/.github/workflows/test_typing.yml b/.github/workflows/test_typing.ymlindex 243ab96df..877b2d225 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.1"]'+ default: '["2.1.2"]'os:required: falsetype: stringdiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 94af0ea33..55f0e9d8a 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -8,7 +8,7 @@ on:pytorch-version:required: falsetype: string- default: '["2.1.1"]'+ default: '["2.1.2"]'os:required: falsetype: stringdiff --git a/test/filters/test_canny.py b/test/filters/test_canny.pyindex 1e0db42ed..f8ff4eee9 100644--- a/test/filters/test_canny.py+++ b/test/filters/test_canny.py@@ -300,7 +300,7 @@ class TestCanny(BaseTester):@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"}+ torch_version() in {"2.1.1", "2.1.2"}and dtype == torch.float64and (isinstance(kernel_size, int) or kernel_size[0] == kernel_size[1])):diff --git a/test/filters/test_guided.py b/test/filters/test_guided.pyindex 9de0d4755..00ace1714 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() in {"1.9.1", "2.1.0", "2.1.1"},+ torch_version() in {"1.9.1", "2.1.0", "2.1.1", "2.1.2"},reason=("https://github.com/pytorch/pytorch/issues/110696 ""- Failing with: Argument of Integer should be of numeric type, got s3 + 3."