Tensorflow 1.2.1 :AttributeError: module 'tensorflow' has no attribute 'random'

Tensorflow 1.2.1 :AttributeError: module 'tensorflow' has no attribute 'random'

我已经安装了 tensorflow 1.2.1,每当我尝试 运行

c=tf.random.normal(shape=(3,4),dtype=tf.float32)

我收到错误 AttributeError: module 'tensorflow' has no attribute 'random'

使用

c = tf.random_normal(shape=(3,4),dtype=tf.float32))

查看可用 API 的完整列表here

查看用法here