Skip to content

Commit 6d4cdf7

Browse files
seemetherehuydhn
authored andcommitted
build: Just set torch>=2.0 (#1210)
Summary: This project is in maintenance mode so set it free from having a hard dependency on a single version of PyTorch Pull Request resolved: #1210 Reviewed By: abhinavarora Differential Revision: D50347787 Pulled By: seemethere fbshipit-source-id: bb62a8848cb506e21a6024134071e2cf7f729388
1 parent c5f2204 commit 6d4cdf7

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/build_conda_linux.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
test-infra-repository: pytorch/test-infra
1717
test-infra-ref: main
1818
with-cuda: disable
19+
with-rocm: disable
1920
build:
2021
needs: generate-matrix
2122
strategy:

.github/workflows/build_wheels_linux.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
test-infra-repository: pytorch/test-infra
1717
test-infra-ref: main
1818
with-cuda: disable
19+
with-rocm: disable
1920
build:
2021
needs: generate-matrix
2122
strategy:

setup.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ def _get_requirements():
110110

111111

112112
# Use new version of torch on main branch
113-
pytorch_package_dep = "torch>2.0"
114-
if os.getenv("PYTORCH_VERSION"):
115-
pytorch_package_dep = pytorch_package_dep.split(">")[0]
116-
pytorch_package_dep += "==" + os.getenv("PYTORCH_VERSION")
117-
113+
pytorch_package_dep = "torch>=2"
118114

119115
requirements = _get_requirements()
120116
requirements.append(pytorch_package_dep)

0 commit comments

Comments
 (0)