This is a .def
file for generating tensorflow.lib
from tensorflow.dll
. It can access only the C API of Tensorflow.
Every python wheel for Tensorflow includes tensorflow.dll
, only named with
_pywrap_tensorflow_internal.pyd
.
Alternatively, you can compile tensorflow.so
using bazel or cmake, and
simply rename the file to tensorflow.dll
. This is the method used by Google
in the Windows CI script.
For those who have made the frustrating decision to use Tensorflow on Windows without Python. For an example, it can be used with Rust bindings for Tensorflow.
It works as of v1.6.0, but as the C API is not stable, this is also not stable.
You must have Visual C++ Build Tools. From the Visual Studio Command Prompt,
use lib.exe
. Change MACHINE
parameter if you want x86.
lib.exe /DEF:<DEF file from this repo> /OUT:<Destination of LIB file> /MACHINE:X64