且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

非法指令:运行任何 Tensorflow 程序时出现 4 错误

更新时间:2022-01-28 00:02:56

OK如果你有 2.66 GHz 版本,在我看来是 2010 年发布的 Arrendale 架构,在这种情况下,它绝对不可能工作,因为它没有最新的张量流二进制文件所需的 AVX 指令.

OK If you have the 2.66 GHz version that seems to me to be the the Arrendale architecture released 2010 in which case there is absolutely no chance it's going to work since that thing doesn't have AVX instructions as needed by the latest binaries of tensor flow.

除非你的 CPU 是 Sandy Bridge 或更新的(所以 AVX 指令)

Unless your CPU is Sandy Bridge or newer (so AVX instructions)

您的选择是:

1) 获得更新的 CPU
2)安装旧版本的张量流
3)从源代码编译张量流

1) get a newer CPU
2) install an older version of tensor flow
3) compile tensor flow from source

降级版本见.
非法指令(核心转储)张量流
Python中导入tensorflow时的非法指令

编辑
似乎虽然所有 Core(i3、i5、i7)和至强 CPU Sandy Bridge 和更新版本都支持 AVX,但截至 2018 年,Celron 和 Pentium CPU 都不是这样.如果购买硬件,请检查机器包含哪些内容.

EDIT
It seems that although all Core (i3, i5, i7) and Xeon CPU Sandy Bridge and newer support AVX, this is not true of Celron, nor Pentium CPU's to this day, as of 2018. Check what the machine contains if buying hardware.