Skip to content

Commit

Permalink
[Hotfix] Update TF's random seed API
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky committed Nov 25, 2020
1 parent 47ef279 commit 085752b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/python/trial_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def set_seed(seed):
# need to have their seeds set
np.random.seed(seed)
mx.random.seed(seed)
tf.set_random_seed(seed)
tf.random.set_seed(seed)
pt.manual_seed(seed)
random.seed(seed)

Expand Down

0 comments on commit 085752b

Please sign in to comment.