How to fix in Tensorflow 2.1.0 has no attribute when use random_normal
January 29 2020
Tensorflow 2.0 comes with new aliases for random_normal. Outputs random values from a normal distribution. Using tf.random.normal should execute successfully.
Sample code:
tf.random.normal(
shape,
mean=0.0,
stddev=1.0,
dtype=tf.dtypes.float32,
seed=None,
name=None
)
shape,
mean=0.0,
stddev=1.0,
dtype=tf.dtypes.float32,
seed=None,
name=None
)
www.tensorflow.org/versions/r2.0/api_docs/python/tf/random/normal#aliases
Comments (0)