非法指令(核心转储)张量流

编程入门 行业动态 更新时间:2024-10-27 08:29:59
本文介绍了非法指令(核心转储)张量流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在我的ubuntu python中导入tensorflow 使用以下命令-

I am importing tensorflow in my ubuntu python using following commands-

$ python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf Illegal instruction (core dumped)

然后程序退出. 请指定解决方案.

And the program exits. Please specify the solution.

推荐答案

我遇到了同样的问题,不得不将tensorflow降级为1.5.0:

I had the same problem and had to downgrade tensorflow to 1.5.0:

pip uninstall tensorflow pip install tensorflow==1.5.0

正如@Tobsta在评论中指出的那样,另一种选择是从源代码编译二进制文件.版本大于1.5的预编译二进制文件使用旧CPU不支持的 AVX 指令

As @Tobsta points out in the comments, the other option is to compile the binaries from source. The precompiled binaries of versions >1.5 use AVX instructions that are not supported by older CPUs

更多推荐

非法指令(核心转储)张量流

本文发布于:2023-06-11 15:12:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/637425.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:张量   指令   核心

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!