Skip to content

Commit

Permalink
Unpin tensorflow maximum version (huggingface#6301)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosasko committed Oct 12, 2023
1 parent 79b5bbb commit 18ef408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"rarfile>=4.0",
"sqlalchemy<2.0.0",
"s3fs>=2021.11.1", # aligned with fsspec[http]>=2021.11.1; test only on python 3.7 for now
"tensorflow>=2.3,!=2.6.0,!=2.6.1,<2.14.0; sys_platform != 'darwin' or platform_machine != 'arm64'", # Temporary upper pin
"tensorflow>=2.3,!=2.6.0,!=2.6.1; sys_platform != 'darwin' or platform_machine != 'arm64'",
"tensorflow-macos; sys_platform == 'darwin' and platform_machine == 'arm64'",
"tiktoken",
"torch",
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/utils/py_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def temp_seed(seed: int, set_pytorch=False, set_tensorflow=False):

if set_tensorflow and config.TF_AVAILABLE:
import tensorflow as tf
from tensorflow.python import context as tfpycontext
from tensorflow.python.eager import context as tfpycontext

tf_state = tf.random.get_global_generator()
temp_gen = tf.random.Generator.from_seed(seed)
Expand Down

0 comments on commit 18ef408

Please sign in to comment.