We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f60f8d commit b95c382Copy full SHA for b95c382
setup.py
@@ -63,8 +63,8 @@ def write_version_file(version):
63
64
65
def _get_pytorch_version(is_nightly, is_local):
66
- # if "PYTORCH_VERSION" in os.environ:
67
- # return f"torch=={os.environ['PYTORCH_VERSION']}"
+ if "PYTORCH_VERSION" in os.environ:
+ return f"torch=={os.environ['PYTORCH_VERSION']}"
68
if is_nightly:
69
return "torch>=2.7.0.dev"
70
if is_local:
0 commit comments