pycharm运行TensorFlow警告:Your CPU supports instructions that this TensorFlow binary was not compiled to
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow
免费下载资源
·
pycharm运行TensorFlow警告:Your CPU supports instructions that this TensorFlow binary was not compiled to
还有警告如下:The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
原始代码如下:
import tensorflow as tf hello=tf.constant("Hello!") sess=tf.Session() print(sess.run(hello))
加入如下两行代码,问题解决,警告消失
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import tensorflow as tf hello=tf.constant("Hello!") sess=tf.Session() print(sess.run(hello))
GitHub 加速计划 / te / tensorflow
184.55 K
74.12 K
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:2 个月前 )
a49e66f2
PiperOrigin-RevId: 663726708
2 个月前
91dac11a
This test overrides disabled_backends, dropping the default
value in the process.
PiperOrigin-RevId: 663711155
2 个月前
更多推荐
已为社区贡献4条内容
所有评论(0)