tensorflow常见问题
生活随笔
收集整理的这篇文章主要介绍了
tensorflow常见问题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
No module named ‘‘assign’’
因为2.0版本不支持1.0版本的一些功能
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
报错: The tensorflow library wasn’t compiled, but these are available on your machine and could speed up CPU computation
报错仅仅是告知可以通过下载和修改源码提高运行速度
通过在python文件中添加如下两行代码,设置TensorFlow日志输出级别
import os
os.environ[“TF_CPP_MIN_LOG_LEVEL”]=‘2’
总结
以上是生活随笔为你收集整理的tensorflow常见问题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: MAC版Pycharm主题——WarmC
- 下一篇: Mac git clone速度太慢