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!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 8
Error occurred when finalizing GeneratorDataset iterator hot 6
ModuleNotFoundError: No module named 'tensorflow.contrib'
TF 2.0 'Tensor' object has no attribute 'numpy' while using .numpy() although eager execution enabled by default
When importing TensorFlow, error loading Hadoop
tf.keras.layers.Conv1DTranspose ?
tensorflow-gpu CUPTI errors hot 4
[TF 2.0] tf.keras.optimizers.Adam hot 4
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning. hot 4
TF2.0 AutoGraph issue hot 4
Tf.Keras metrics issue hot 4
Error loading tensorflow hot 4
module 'tensorflow' has no attribute 'ConfigProto' hot 4
ModuleNotFoundError: No module named 'tensorflow.examples.tutorials' hot 4
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list' hot 4
Github User Rank List