Skip to content

Commit 2b25d32

Browse files
authored
Merge pull request #27 from Starrah/patch-pytorch-version
优化对torch版本的依赖声明为>=1.12.1且<2.0
2 parents 53055cc + a4c7e46 commit 2b25d32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/source/start/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Installation
77
- Proof: Xinwei Zhang
88

99
- Python >= 3.8
10-
- Pytorch >=1.11
10+
- Pytorch >= 1.12
1111

1212
Current, the stable version of **DHG** is 0.9.2. You can install it with ``pip`` as follows:
1313

docs/source/zh/start/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- 校对: `丰一帆 <https://fengyifan.site/>`_ 、张欣炜
99

1010
- Python >= 3.8
11-
- Pytorch >=1.11
11+
- Pytorch >= 1.12
1212

1313

1414
目前, **DHG** 的最新稳定版本 **0.9.2** 已经发布,可以使用 ``pip`` 指令直接安装:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232

3333
[tool.poetry.dependencies]
3434
python = "^3.8"
35-
torch = "1.12.1"
35+
torch = ">= 1.12.1, < 2.0"
3636
scipy = "^1.8"
3737
optuna = "*"
3838
numpy = "*"

0 commit comments

Comments
 (0)