CPU instructions not compiled with TensorFlow

前端 未结 4 1206
南笙
南笙 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条回答
  •  萌比男神i
    2020-12-29 15:56

    NOTE : These are not error messages but mere warning messages.

    The best way to maximise TF performance (apart from writing good code !!), is to compile it from the sources

    When you do that, TF would ask you for a variety of options which will also involve options for these instructions.

    In my own experience, compilation from the source is better in performance on an average.

    If you are doing some intensive processing that could be done on a GPU then that might also explain your waiting time. For GPU support you would need to do pip3 install tensorflow-gpu

提交回复
热议问题