Skip to content

Commit

Permalink
[build] Fix tensorflow build dep (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 authored Dec 3, 2024
1 parent 0423e9e commit c8ec392
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ dependencies = [
[project.optional-dependencies]
tf = [
# cf. https://github.com/mindee/doctr/pull/1461
"tensorflow[and-cuda]>=2.15.0,<3.0.0; sys_platform != 'darwin'",
"tensorflow>=2.15.0,<3.0.0; sys_platform == 'darwin'", # TensorFlow compatible for macOS
"tensorflow[and-cuda]>=2.15.0,<3.0.0; sys_platform == 'linux'",
"tensorflow>=2.15.0,<3.0.0; sys_platform != 'linux'", # TensorFlow compatible for macOS and Windows
"tf-keras>=2.15.0,<3.0.0", # Keep keras 2 compatibility
"tf2onnx>=1.16.0,<2.0.0", # cf. https://github.com/onnx/tensorflow-onnx/releases/tag/v1.16.0
]
Expand Down Expand Up @@ -98,8 +98,8 @@ docs = [
dev = [
# Tensorflow
# cf. https://github.com/mindee/doctr/pull/1461
"tensorflow[and-cuda]>=2.15.0,<3.0.0; sys_platform != 'darwin'",
"tensorflow>=2.15.0,<3.0.0; sys_platform == 'darwin'", # TensorFlow compatible for macOS
"tensorflow[and-cuda]>=2.15.0,<3.0.0; sys_platform == 'linux'",
"tensorflow>=2.15.0,<3.0.0; sys_platform != 'linux'", # TensorFlow compatible for macOS and Windows
"tf-keras>=2.15.0,<3.0.0", # Keep keras 2 compatibility
"tf2onnx>=1.16.0,<2.0.0", # cf. https://github.com/onnx/tensorflow-onnx/releases/tag/v1.16.0
# PyTorch
Expand Down

0 comments on commit c8ec392

Please sign in to comment.