好的,所以。我遇到了一个大问题,已经好几天没能解决。我几乎查遍了所有相关讨论帖,还是无法解决。
首先,我使用的是Ubuntu 18.04,Python 3.6,以及Nvidia Gforce 920M显卡。我安装了Cuda 9.0(也尝试过9.1和9.2)。
我尝试安装tensorflow-gpu,但每次导入时都会得到相同的错误。
2018-12-09 01:43:41.324778: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine.Aborted (core dumped)
我还尝试了使用Anaconda,但仍然没有成功。
你们能帮帮我吗?提前谢谢你们。
回答:
好的,所以。切换到Python 2.7并安装tensorflow-gpu解决了这个问题。我仍然不知道为什么,但这是解决这个问题的变通方法。如果你们有任何关于如何在Python 3.6上修复这个问题的想法,请分享,但在找到解决方案之前,请使用Python 2.7。
祝 coding 愉快!