• tensorflow 装好后运行 samples里面的例子
python3 premade_estimator.py
  • 报错:AttributeError: module 'tensorflow' has no attribute 'keras'
pip3 install keras
  • 装keras 还是出现上述问题。
  • 更新tensorflow:
conda update tensorflow

导入tensorflow报错: illlegal instruction, 然后python界面直接退出了。

难道是版本不对,按照下面这个网址做试试看!

pip3 uninstall tensorflow
pip3 install -Iv tensorflow==1.5
我是直接输入:pip3 install tensorflow==1.5
导入没问题了。

运行官网给的例子

python premade_estimator.py

 

  • 如果报错说缺啥module就重新装一下就行,即使用pip list 看了存在,还有可能是缺少一些依赖modules。

 

GitHub 加速计划 / te / tensorflow
21
4
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:1 个月前 )
4f64a3d5 Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`. This prevents us from stepping into nested fusions. PiperOrigin-RevId: 724311958 1 个月前
aa7e952e Fix a bug in handling negative strides, and add a test case that exposes it. We can have negative strides that are not just -1, e.g. with a combining reshape. PiperOrigin-RevId: 724293790 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐