From c47c6e202d60ccac15aa36698bd4788415a9416b Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 25 Nov 2023 16:46:17 -0500 Subject: [PATCH] torch sane version --- tools/generate_torch_version.py | 1 + version.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/generate_torch_version.py b/tools/generate_torch_version.py index d90d3646ab..11d5bbeba5 100644 --- a/tools/generate_torch_version.py +++ b/tools/generate_torch_version.py @@ -42,6 +42,7 @@ def get_tag(pytorch_root: Union[str, Path]) -> str: def get_torch_version(sha: Optional[str] = None) -> str: pytorch_root = Path(__file__).parent.parent version = open(pytorch_root / "version.txt").read().strip() + return version if os.getenv("PYTORCH_BUILD_VERSION"): assert os.getenv("PYTORCH_BUILD_NUMBER") is not None diff --git a/version.txt b/version.txt index ecaf4eea7c..7ec1d6db40 100644 --- a/version.txt +++ b/version.txt @@ -1,1 +1,1 @@ -2.1.0a0 +2.1.2 -- 2.42.1