Is it possible to use TensorFlow C++ API on Windows?

前端 未结 5 1668
滥情空心
滥情空心 2020-12-14 03:49

I\'m interested in incorporating TensorFlow into a C++ server application built in Visual Studio on Windows 10 and I need to know if that\'s possible. Google recently annou

5条回答
  •  星月不相逢
    2020-12-14 04:13

    I made a README detailing how to I built the Tensorflow dll and .lib file for the C++ API on Windows with GPU support building from source with Bazel. Tensorflow version 1.14

    The tutorial is step by step and starts at the very beginning, so you may have to scroll down past steps you have already done, like checking your hardware, installing Bazel etc. Here is the url: https://github.com/sitting-duck/stuff/tree/master/ai/tensorflow/build_tensorflow_1.14_source_for_Windows

    Probably you will want to scroll all the way down to this part: https://github.com/sitting-duck/stuff/tree/master/ai/tensorflow/build_tensorflow_1.14_source_for_Windows#step-7-build-the-dll

    It shows how to pass command to create .lib and .dll.

    Then to test your .lib you should link it into your c++ project,

    Then it will show you how to identify and fix the missing symbols using the TF_EXPORT macro

    I am actively working on making this tutorial better so feel free to leave comments on this answer if you are having problems.

提交回复
热议问题