From e3eeb75dd0ede013451252d6f333084f0c3b14fc Mon Sep 17 00:00:00 2001 From: tianwei Date: Mon, 24 Jul 2023 10:10:31 +0800 Subject: [PATCH] chore(example): upgrade pytorch version for examples (#2548) --- example/runtime/pytorch-cn-mirror/requirements.txt | 13 +++++++------ example/runtime/pytorch-e2e/requirements.txt | 11 ++++++----- example/runtime/pytorch/requirements.txt | 14 +++++++------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/example/runtime/pytorch-cn-mirror/requirements.txt b/example/runtime/pytorch-cn-mirror/requirements.txt index c84ed605e1..a2d484459c 100644 --- a/example/runtime/pytorch-cn-mirror/requirements.txt +++ b/example/runtime/pytorch-cn-mirror/requirements.txt @@ -15,9 +15,10 @@ numpy==1.23.2; python_version>='3.8' scikit-learn==1.1.1; python_version>='3.8' scipy==1.8.1; python_version>='3.8' importlib-metadata>=4.0.0, <=4.2.0;python_version < '3.8' -torch==1.12.1 -torchaudio==0.12.1 -torchdata==0.4.1 -torchtext==0.13.1 -torchvision==0.13.1 -gradio \ No newline at end of file +torch==2.0.1; python_version>='3.8' +torch==1.13.1; python_version=='3.7' +torchaudio +torchdata +torchtext +torchvision +gradio diff --git a/example/runtime/pytorch-e2e/requirements.txt b/example/runtime/pytorch-e2e/requirements.txt index 6109a699ef..11f7fa1e33 100755 --- a/example/runtime/pytorch-e2e/requirements.txt +++ b/example/runtime/pytorch-e2e/requirements.txt @@ -11,8 +11,9 @@ numpy==1.23.2; python_version>='3.8' scikit-learn==1.1.1; python_version>='3.8' scipy==1.8.1; python_version>='3.8' importlib-metadata>=4.0.0, <=4.2.0;python_version < '3.8' -torch==1.12.1 -torchaudio==0.12.1 -torchdata==0.4.1 -torchtext==0.13.1 -torchvision==0.13.1 +torch==2.0.1; python_version>='3.8' +torch==1.13.1; python_version=='3.7' +torchaudio +torchdata +torchtext +torchvision \ No newline at end of file diff --git a/example/runtime/pytorch/requirements.txt b/example/runtime/pytorch/requirements.txt index 47bef42bd5..1d3926f11c 100644 --- a/example/runtime/pytorch/requirements.txt +++ b/example/runtime/pytorch/requirements.txt @@ -1,4 +1,3 @@ -starwhale>=0.3.6 # for pfp pycocotools # for ucf101 @@ -11,9 +10,10 @@ numpy==1.23.2; python_version>='3.8' scikit-learn==1.1.1; python_version>='3.8' scipy==1.8.1; python_version>='3.8' importlib-metadata>=4.0.0, <=4.2.0;python_version < '3.8' -torch==1.12.1 -torchaudio==0.12.1 -torchdata==0.4.1 -torchtext==0.13.1 -torchvision==0.13.1 -gradio \ No newline at end of file +torch==2.0.1; python_version>='3.8' +torch==1.13.1; python_version=='3.7' +torchaudio +torchdata +torchtext +torchvision +gradio