Answers for "AttributeError: module 'tensorflow' has no attribute 'set_random_seed' site:stackoverflow.com"

2

module 'tensorflow' has no attribute 'set_random_seed'

tf.random.set_seed(seed)
Posted by: Guest on November-17-2020
1

module 'tensorflow_core.compat.v1.random' has no attribute 'set_seed'

tf.random.set_random_seed(seed)
Posted by: Guest on November-17-2020

Code answers related to "AttributeError: module 'tensorflow' has no attribute 'set_random_seed' site:stackoverflow.com"

Browse Popular Code Answers by Language