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

Commit 84969d2

Browse files
authored
install process for tensorflow-gpu (#49)
1 parent 974d51e commit 84969d2

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,15 @@ TensorFlow V1:
321321

322322
```bash
323323
pip install sparseml[tf_v1]
324-
```
324+
```
325+
326+
TensorFlow V1 with GPU operations enabled:
327+
```bash
328+
pip install sparseml[tf_v1_gpu]
329+
```
330+
Depending on your device and CUDA version, you may need to install additional
331+
dependencies for using TensorFlow V1 with GPU operations. You can find these
332+
steps [here](https://www.tensorflow.org/install/gpu#older_versions_of_tensorflow).
325333

326334
## Resources and Learning More
327335

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
_pytorch_deps = ["torch>=1.1.0", "tensorboard>=1.0", "tensorboardX>=1.0"]
4040
_pytorch_vision_deps = _pytorch_deps + ["torchvision>=0.3.0"]
4141
_tensorflow_v1_deps = ["tensorflow<2.0.0", "tensorboard<2.0.0", "tf2onnx>=1.0.0,<1.6"]
42+
_tensorflow_v1_gpu_deps = [
43+
"tensorflow-gpu<2.0.0",
44+
"tensorboard<2.0.0",
45+
"tf2onnx>=1.0.0,<1.6",
46+
]
4247
_keras_deps = ["tensorflow~=2.2", "keras2onnx>=1.0.0"]
4348

4449
_dev_deps = [
@@ -74,6 +79,7 @@ def _setup_extras() -> Dict:
7479
"torch": _pytorch_deps,
7580
"torchvision": _pytorch_vision_deps,
7681
"tf_v1": _tensorflow_v1_deps,
82+
"tf_v1_gpu": _tensorflow_v1_gpu_deps,
7783
"tf_keras": _keras_deps,
7884
}
7985

0 commit comments

Comments
 (0)