It seems it didn't get much attention since it's lost in another thread.
tf.random is broken since 12.1.
import tensorflow as tf
x = tf.random.uniform((10,))
y = tf.random.uniform((10,))
tf.print(x)
tf.print(y)
[0.178906798 0.8810848 0.384304762 ... 0.162458301 0.64780426 0.0123682022]
[0.178906798 0.8810848 0.384304762 ... 0.162458301 0.64780426 0.0123682022]
works fine on collab, worked on 12.0, It also works fine if I disable GPU with :
tf.config.set_visible_devices([], 'GPU')
WORKAROUND :
g = tf.random.Generator.from_non_deterministic_state()
x = g.uniform((10,))
y = g.uniform((10,))