Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 22d40a3

Browse files
authored
[cherry-pick] install extra option for torch_all (#1368) (#1369)
* install extra option for torch_all * add torchtext, remove tensorboard as a torch dep * move tensorboard deps to dev deps to run tests
1 parent 1271955 commit 22d40a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@
6363
_onnxruntime_deps = ["onnxruntime>=1.0.0"]
6464
_pytorch_deps = [
6565
"torch>=1.1.0,<=1.12.1",
66-
"tensorboard>=1.0,<2.9",
67-
"tensorboardX>=1.0",
6866
"gputils",
6967
]
68+
_pytorch_all_deps = _pytorch_deps + [
69+
"torchvision>=0.3.0,<=0.13",
70+
"torchaudio<=0.12",
71+
"torchvision>=0.3.0,<=0.13",
72+
]
7073
_pytorch_vision_deps = _pytorch_deps + ["torchvision>=0.3.0,<=0.13"]
7174
_tensorflow_v1_deps = ["tensorflow<2.0.0", "tensorboard<2.0.0", "tf2onnx>=1.0.0,<1.6"]
7275
_tensorflow_v1_gpu_deps = [
@@ -99,6 +102,8 @@
99102
"flaky~=3.7.0",
100103
"sphinx-rtd-theme",
101104
"docutils<0.17",
105+
"tensorboard>=1.0,<2.9",
106+
"tensorboardX>=1.0",
102107
]
103108

104109

@@ -123,6 +128,7 @@ def _setup_extras() -> Dict:
123128
"deepsparse-ent": _deepsparse_ent_deps,
124129
"onnxruntime": _onnxruntime_deps,
125130
"torch": _pytorch_deps,
131+
"torch_all": _pytorch_all_deps,
126132
"torchvision": _pytorch_vision_deps,
127133
"tf_v1": _tensorflow_v1_deps,
128134
"tf_v1_gpu": _tensorflow_v1_gpu_deps,

0 commit comments

Comments
 (0)