python - AttributeError:模块'tensorflow'没有tensorflow 1.3版的属性'random'
问题描述
我正在使用 tensorflow 版本 1.3.0 Cuda 版本 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'
请帮助我,因为我已经坚持了很长一段时间。
解决方案
推荐阅读
- unix - unbale 将邮件发送到带有附件 unix/solaris 10 的分发列表
- python-3.x - 如何制作允许重用密钥的枚举?
- python - Python中的连续UDP查询随机停止
- android - 无法使用多部分请求从颤振应用程序上传图像
- javascript - 为什么 javascript 表单验证中的 required 属性仅适用于我表单中的一个按钮?
- python - 我不明白这行代码是如何工作的
- python - 你可以在termux中使用pygame吗?
- c# - WPF 中的 C# 更改为更人性化的布尔值
- unity3d - Unity中XR控制器移动的距离
- python - 访问另一个 tkinter 类的输入字段值