Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

前端 未结 8 1548
难免孤独
难免孤独 2020-11-22 04:46

I am new to TensorFlow. I have recently installed it (Windows CPU version) and received the following message:

Successfully installed tensorflow-1.4

8条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 05:22

    CPU optimization with GPU

    There are performance gains you can get by installing TensorFlow from the source even if you have a GPU and use it for training and inference. The reason is that some TF operations only have CPU implementation and cannot run on your GPU.

    Also, there are some performance enhancement tips that makes good use of your CPU. TensorFlow's performance guide recommends the following:

    Placing input pipeline operations on the CPU can significantly improve performance. Utilizing the CPU for the input pipeline frees the GPU to focus on training.

    For best performance, you should write your code to utilize your CPU and GPU to work in tandem, and not dump it all on your GPU if you have one. Having your TensorFlow binaries optimized for your CPU could pay off hours of saved running time and you have to do it once.

提交回复
热议问题