Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import tensorflow error: terminate called after throwing an instance of 'Xbyak::Error'

I am trying to debug an error with tensorflow. When I import tensorflow I get the following error

import tensorflow as tf

terminate called after throwing an instance of 'Xbyak::Error'

what(): internal error

Aborted (core dumped)

Here are the install details

OS >> Ubuntu 14.04

Install Method Anaconda >> conda 4.4.11 (conda install tensorflow)

python3 --version >> Python 3.6.4 :: Anaconda, Inc.

If anyone has experience or knowledge on how to fix this issue, I would be most grateful. A search here, on google and on github yielded suggested the issue is likely with MKL-DNN, has anyone found a work around?

like image 243
Peter Woerner Avatar asked Feb 28 '18 15:02

Peter Woerner


1 Answers

As others have mentioned, it is probably a better practice to install from source using official documentation:

https://www.tensorflow.org/install/install_linux#installing_with_anaconda

That's the only method which google supports.

The conda forge version (1.5.0) works fine. Using

conda install -c conda-forge tensorflow

p.s.: Make sure you don't edit as that will throw back the original error.

like image 72
Peter Woerner Avatar answered Oct 31 '22 15:10

Peter Woerner