From d336d5cd6bb7c38ea73ad3072ea01d05852cb4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=A4=E5=AE=89=E5=8D=87?= Date: Fri, 11 Feb 2022 11:28:43 +0800 Subject: [PATCH 1/2] Update torch_npu version. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3f2f9541998..431268ce493 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ from setuptools import setup, find_packages, distutils, Extension BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -VERSION = '1.8.1-rc1' +VERSION = '1.8.1rc1' def _get_build_mode(): -- Gitee From 6f513f603144eb146e404b0a304f80037ce70af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=A4=E5=AE=89=E5=8D=87?= Date: Fri, 11 Feb 2022 11:40:56 +0800 Subject: [PATCH 2/2] Add version. --- .gitignore | 2 -- torch_npu/__init__.py | 1 + torch_npu/version.py | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 torch_npu/version.py diff --git a/.gitignore b/.gitignore index 7356d028003..9afa54e67d3 100644 --- a/.gitignore +++ b/.gitignore @@ -193,5 +193,3 @@ TAGS # bazel symlinks bazel-* - -torch_npu/version.py \ No newline at end of file diff --git a/torch_npu/__init__.py b/torch_npu/__init__.py index 8a9fa1cc128..cedd54404fc 100644 --- a/torch_npu/__init__.py +++ b/torch_npu/__init__.py @@ -24,6 +24,7 @@ import torch_npu.npu.amp import torch_npu.distributed import torch_npu._C +from .version import __version__ as __version__ __all__ = [] diff --git a/torch_npu/version.py b/torch_npu/version.py new file mode 100644 index 00000000000..32fb6cf7bf3 --- /dev/null +++ b/torch_npu/version.py @@ -0,0 +1 @@ +__version__ = "1.8.1rc1" -- Gitee