profile
viewpoint

Ask questionsAttributeError: module 'tensorflow' has no attribute 'set_random_seed'

tf2.0

tf.set_random_seed(self._seed)

AttributeError: module 'tensorflow' has no attribute 'set_random_seed'

tensorflow/tensorflow

Answer questions eduardofv

Moved to tf.random.set_seed() https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/random/set_seed

useful!
source:https://uonfu.com/
Github User Rank List