mac AVX 的张量流

Tensorflow for mac AVX

我正在使用 TensorFlow,但收到以下警告

The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations

我是用pip安装的

我该如何解决?

因为你是用pip安装的,它是一个预编译包,没有预编译到你使用的架构,你需要从源码编译。

源码编译方法可以参考tensorflow官方文档

https://www.tensorflow.org/install/install_sources