# TensorFlow : CPU warnings

**URL:** https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993
**Category:** Machine Learning
**Tags:** tensorflow
**Created:** [September 20, 2017, 6:53am UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993 "2017-09-20T06:53:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)
#### Post date: [September 20, 2017, 6:53am UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993/1 "2017-09-20T06:53:01Z")

</div>

Each time I run a TF programme it runs fine but starts out warning me in about 20 lines of messages that I really should be putting my Intel CPU to better use by using the MKL instructions. So I put several hours into trying to build a custom version of TensorFlow and succeeded in compiing a wheel file it but it fails to import properly at this point so I will probably have to revert. My question of the Julia community is whether there is a Julia way to suppress these warnings or whether they are fixed in the TF code and I just have to ignore them.

The reason for the failure of TF to load into python3 appears to be related to numpy versions; the numpy I am using regularly is not the same version that the TF build used, but that is not a question for this forum unless anyone else saw the same thing.

---

<div class="post-metadata">

### Author: ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)
#### Post date: [September 20, 2017, 7:24am UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993/2 "2017-09-20T07:24:48Z")

</div>

Well I managed to sort out the numpy thing, now my version of TensorFlow seems to be loadable in python3 and julia, but I am still getting the warnings. So I guess the MKL libraries did not compile in despite following instructions very carefully, ENV vars set and so on. Quite a few hours wasted.

---

<div class="post-metadata">

### Author: ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)
#### Post date: [September 20, 2017, 7:58am UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993/3 "2017-09-20T07:58:35Z")

</div>

It seems the warnings can be killed with:  
export TF\_CPP\_MIN\_LOG\_LEVEL=2 on Linux.  
Seems to work well, but fundamental problem not resolved.

---

<div class="post-metadata">

### Author: ![malmaud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/malmaud/32/29_2.png) [@malmaud](https://discourse.julialang.org/u/malmaud)
#### Post date: [September 20, 2017, 1:14pm UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993/4 "2017-09-20T13:14:12Z")

</div>

If you’re talking about TensorFlow.jl, [here](http://malmaud.github.io/TensorFlow.jl/latest/build_from_source.html) are the instructions for building a custom TensorFlow binary optimized for your CPU.

---

<div class="post-metadata">

### Author: ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)
#### Post date: [September 20, 2017, 2:12pm UTC](https://discourse.julialang.org/t/tensorflow-cpu-warnings/5993/5 "2017-09-20T14:12:14Z")

</div>

Thanks, yes I was talking about Julia tensorflow. It is easy to get the impression that Julia just runs what Python runs, but it seems that is not the case. I have now built the .so and it runs fine without the warning messages.
