tensorflow / models

Models and examples built with TensorFlow
Other
77.23k stars 45.75k forks source link

An example of building an external ops on Windows #2511

Closed ankur6ue closed 4 years ago

ankur6ue commented 7 years ago

The Problem:

Using TensorFlow version 1.3.0 on Windows 10.

Thanks for providing a windows port for Tensorflow. Is there an example that shows how to compile external C/C++ code into a so/dll that can be loaded by tensorflow as an external op (without building entire tensorflow source) on Windows? The word2vec code that builds word2vec_ops.so/dll would be a great example..

This thread seems to suggest that this is possible now: https://github.com/tensorflow/models/issues/1103

Incidently, I also tried building TensorFlow from source on windows. It almost works, but I get the following when I run: MSBuild /p:Configuration=Release tf_python_build_pip_package.vcxproj, as suggested on the build from source on windows using cmake readme (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/cmake/README.md)

   "C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_bu
   ild_pip_package.vcxproj" (default target) (1) ->
   (PostBuildEvent target) ->
     EXEC : error : could not create 'build\bdist.win-amd64\wheel\tensorflow-1.3.0.data\purelib\tensorflow\contrib\
   tensor_forest\hybrid\python\models\stochastic_hard_decisions_to_data_then_nn.py': No such file or directory [C:\
   Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_
   pip_package.vcxproj]
     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: The
   command "setlocal\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmak
   e\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/tools/pip_package/setup.py C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/ten
   sorflow/contrib/cmake/build/tf_python/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\te
   nsorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/cmake/build/Release/pywrap_tensorflow_internal.dll C:/Telesens/dev/apps/src/MachineLearnin
   g/TensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/python/_pywrap_tensorflow_inter
   nal.pyd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/cmake/build/Release/pywrap_tensorflow_internal.lib C:/Telesens/dev/apps/src/MachineLearnin
   g/TensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/python/\r [C:\Telesens\dev\apps
   \src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxpr
   oj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/tools/pip_package/README C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/tenso
   rflow/contrib/cmake/build/tf_python/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tens
   orflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/tools/pip_package/MANIFEST.in C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/
   tensorflow/contrib/cmake/build/tf_python/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow
   \tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/learn/python/learn/datasets/data/boston_house_prices.csv C:/Telesens/dev/apps/src/MachineL
   earning/TensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/contrib/learn/python/lear
   n/datasets/data/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake
   \build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/learn/python/learn/datasets/data/iris.csv C:/Telesens/dev/apps/src/MachineLearning/TensorF
   low/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/contrib/learn/python/learn/datasets/data
   /\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/learn/python/learn/datasets/data/text_test.csv C:/Telesens/dev/apps/src/MachineLearning/Te
   nsorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/contrib/learn/python/learn/datasets
   /data/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_
   python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorfl
   ow/tensorflow/contrib/learn/python/learn/datasets/data/text_train.csv C:/Telesens/dev/apps/src/MachineLearning/T
   ensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/contrib/learn/python/learn/dataset
   s/data/\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/core C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/tensorflow/cont
   rib/cmake/build/tf_python/tensorflow/include/tensorflow/core\r [C:\Telesens\dev\apps\src\MachineLearning\TensorF
   low\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/contrib/cmake/build/tensorflow/core C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/
   temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/include/tensorflow/core\r [C:\Telesens\dev\a
   pps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vc
   xproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/stream_executor C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/tens
   orflow/contrib/cmake/build/tf_python/tensorflow/include/tensorflow/stream_executor\r [C:\Telesens\dev\apps\src\M
   achineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src/google C:/Telesens/dev/apps/src/MachineLea
   rning/TensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/include/google\r [C:\Telese
   ns\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_pa
   ckage.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/contrib/cmake/build/eigen/src/eigen/Eigen C:/Telesens/dev/apps/src/MachineLearning/Tenso
   rFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/include/Eigen\r [C:\Telesens\dev\apps\
   src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxpro
   j]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive C:/Telesens/dev/apps/src/MachineLearning/Tens
   orFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/include/external/eigen_archive\r [C:\
   Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_
   pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/third_party/eigen3 C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/tensorflow/c
   ontrib/cmake/build/tf_python/tensorflow/include/third_party/eigen3\r [C:\Telesens\dev\apps\src\MachineLearning\T
   ensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "C:\Pr
   ogram Files (x86)\cmake\bin\cmake.exe" -E copy_directory C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/tem
   p/tensorflow/tensorflow/contrib/cmake/build/eigen/src/eigen/unsupported/Eigen C:/Telesens/dev/apps/src/MachineLe
   arning/TensorFlow/temp/tensorflow/tensorflow/contrib/cmake/build/tf_python/tensorflow/include/unsupported/Eigen\
   r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_
   build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: setloc
   al\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pyth
   on_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: cd C:\
   Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python\r [C:\
   Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_
   pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: C:\r [
   C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python_bui
   ld_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: C:\Pyt
   hon36_x64\python.exe C:/Telesens/dev/apps/src/MachineLearning/TensorFlow/temp/tensorflow/tensorflow/contrib/cmak
   e/build/tf_python/setup.py bdist_wheel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\te
   nsorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :cmEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmEnd
   \r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_python
   _build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: endloc
   al & call :cmErrorLevel %errorlevel% & goto :cmDone\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\
   tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmErr
   orLevel\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf
   _python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: exit /
   b %1\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_py
   thon_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :cmDon
   e\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cmake\build\tf_pytho
   n_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: if %er
   rorlevel% neq 0 goto :VCEnd\r [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\co
   ntrib\cmake\build\tf_python_build_pip_package.vcxproj]
   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd
   " exited with code 1. [C:\Telesens\dev\apps\src\MachineLearning\TensorFlow\temp\tensorflow\tensorflow\contrib\cm
   ake\build\tf_python_build_pip_package.vcxproj]

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

reedwm commented 7 years ago

/CC @mrry is there any documentation on how to do this?

ankur6ue commented 7 years ago

Thanks for the quick reply. I'm not looking for a nicely written doc (although that would be great). Just any code that can be compiled on windows to produce a dll/so that can be loaded into python as an external op would suffice.

For example, in the current tensorflow for windows distribution, there are some dlls that appear to implement external ops _lstm_ops.dll in site-packages\tensorflow\contrib\rnn\python\ops

Instructions on how to build these dlls would be great. I'd imagine the procedure would be similar for other external ops.

mrry commented 7 years ago

As you might have guessed, there's no nicely written doc (this feature was a community contribution, and lavish documentation is too high a bar...). However, here's a link to where the _lstm_ops.dll and _gru_ops.dll extensions get built, so if you're familiar with CMake you might be able to figure out what's going on:

https://github.com/tensorflow/tensorflow/blob/9ff05e9e7f471a8487cdd8a7bb6fdd554055e2dd/tensorflow/contrib/cmake/tf_python.cmake#L996

ankur6ue commented 7 years ago

Thanks, but I'm not a cmake expert and the code to build the external ops is deeply embedded in the cmake file.. It is not clear how to run just that part of the cmake file standalone in a way that produces the ops binary without building the entire tensorflow source code.

I don't need a nicely written doc, just a make file that can be run in a windows environment and builds an external op dll without building all of tensorflow. I'd think this would be a common request among tensorflow users on windows..

SubZero000 commented 6 years ago

Only Windows programmers could make a simple process overly convoluted and complex. Building an external Tensorflow op under Linux is as simple as invoking a single gcc command.

tensorflowbutler commented 4 years ago

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.