Skip to content

Commit

Permalink
Use same seed for tests for numpy and tf
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed May 11, 2023
1 parent edbf6ba commit 783cf71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ def reset(seed=123):
# in the TensorFlow backend have a well-defined initial state.
# For further details, see:
# https://www.tensorflow.org/api_docs/python/tf/random/set_seed
tf.random.set_seed(
1234
) # @TODO: Should this seed be different than for python and numpy?
# @TODO: Should this seed be different than for python and numpy?
tf.random.set_seed(seed)

# https://stackoverflow.com/a/71311207
try:
Expand Down

0 comments on commit 783cf71

Please sign in to comment.