I am trying to use tf.random.Normal(mean, stddev)
where both mean and stddev are like following
mean= np.array([0.5,0.9,0.5,0.8])
stddev=np.array([0.1,0.08.0.1,0.15])
but for same pair the generated values are always same
tf.random.normal([1],mean,stddev, tf.float32).numpy()
for example,
array([0.52523446, 0.92018753, 0.52523446, 0.83785176], dtype=float32)
every time i run the outputs are different but the generated value for same parameters are always same.
I want to avoid getting 0.52523446 twice. How can I ensure getting random results even if there are same mean, stddev pair mutiple times?
Aucun commentaire:
Enregistrer un commentaire