Skip to content

Commit

Permalink
fix DP_ENABLE_TENSORFLOW support (#3229)
Browse files Browse the repository at this point in the history
Avoid installing tensorflow as build requires when
`DP_ENABLE_TENSORFLOW` is `0`.

Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Feb 5, 2024
1 parent 7f5d67c commit f5bb131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/find_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def find_tensorflow() -> Tuple[Optional[str], List[str]]:
list of str
TensorFlow requirement if not found. Empty if found.
"""
if os.environ.get("DP_ENABLE_TENSORFLOW", "1") == "0":
return None, []
requires = []

tf_spec = None
Expand Down

0 comments on commit f5bb131

Please sign in to comment.