CPU instructions not compiled with TensorFlow

前端 未结 4 1224
南笙
南笙 2020-12-29 15:16

MacBook Air: OSX El Capitan

When I run TensorFlow code in terminal (python 3 tfpractice.py), I get a longer than normal waiting time to get back output

4条回答
  •  余生分开走
    2020-12-29 15:54

    You can also compile using bazel with opt arguments:

    bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package
    

    I think you can find something in this discussion: How to compile Tensorflow with SSE4.2 and AVX instructions?

    Good luck!

提交回复
热议问题