Skip to content

Commit

Permalink
hooks: update tensorflow hook for tensorflow v2.14.0
Browse files Browse the repository at this point in the history
Add `ml_dtypes` to hidden imports.
  • Loading branch information
rokm committed Sep 29, 2023
1 parent 39b588b commit 184b23a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ limits==3.6.0
# great-expectations as of v0.16.10 does not officially support python 3.11 yet, and the pyspark
# compatibility wrapper seems to be broken for python 3.11 in this version.
great-expectations==0.17.19; python_version < '3.11'
tensorflow==2.13.0
tensorflow==2.14.0; python_version >= '3.9'
pyshark==0.6.0
opencv-python==4.8.0.76
hydra-core==1.3.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def _submodules_filter(x):
if is_module_satisfies("tensorflow >= 2.6.0"):
hiddenimports += collect_submodules('keras')

# Starting with 2.14.0, we need `ml_dtypes` among hidden imports.
if is_module_satisfies("tensorflow >= 2.14.0"):
hiddenimports += ['ml_dtypes']

excludedimports = excluded_submodules

# Suppress warnings for missing hidden imports generated by this hook.
Expand Down

0 comments on commit 184b23a

Please sign in to comment.