You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In notebook 11, the line tf.set_random_seed(seed)
is deprecated and generates and error: AttributeError: module 'tensorflow' has no attribute 'set_random_seed'
Apparently set_random_seed() has been replaced with random.set_seed(). The problem can be fixed by replacing that line with tf.random.set_seed(seed)
In notebook 11, the line
tf.set_random_seed(seed)
is deprecated and generates and error:
AttributeError: module 'tensorflow' has no attribute 'set_random_seed'
Apparently
set_random_seed()
has been replaced withrandom.set_seed()
. The problem can be fixed by replacing that line withtf.random.set_seed(seed)
See also this thread on the tensorflow repo: tensorflow/tensorflow#30070
The text was updated successfully, but these errors were encountered: