【发布时间】:2021-01-04 12:44:30
【问题描述】:
我使用的是 tensorflow 版本 1.3.0 库达版本 8 和 cuDNN 版本 6
当我运行python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))" 时,我看到以下错误:-
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'random'
请帮助我,因为我被困了很长时间。
【问题讨论】:
标签: python python-3.x tensorflow