hello_tf_c_api
1.0.0

예제 Windows, Linux 및 MacOS (Darwin)에서 Tensorflow Lib C API를 실행하는 방법.
git clone --depth 1 https://github.com/Neargye/hello_tf_c_api
cd hello_tf_c_api
mkdir build
cd build
cmake -G "Visual Studio 15 2017" -A x64 ..
cmake --build . --config Debug
git clone --depth 1 https://github.com/Neargye/hello_tf_c_api
cd hello_tf_c_api
mkdir build
cd build
cmake -G "Unix Makefiles" ..
cmake --build .
git clone --depth 1 https://github.com/Neargye/hello_tf_c_api
cd hello_tf_c_api
mkdir build
cd build
cmake -G "XCode" ..
cmake --build .
X64 CPU의 경우 https://www.tensorflow.org/install/lang_c에서 tensorflow.so, tensorflow.dll 및 tensorflow.lib를 다운로드 할 수 있습니다.
또는 CPU 또는 GPU 지원을 통해 소스에서 필요한 버전을 빌드하십시오.
link_directories(yourpath/to/tensorflow) # path to tensorflow lib
... # other
target_link_libraries(<target> <PRIVATE|PUBLIC|INTERFACE> tensorflow)
"Project"-> "Properties"-> 구성 속성 "->"링커 "->"추가 종속성 "을 다음 줄로 TensorFlow.lib에 경로를 추가하십시오.
TensorFlow.dll이 출력 디렉토리에 있는지 확인하십시오 (기본적으로 프로젝트 폴더에서 디버그 릴리스) 또는 % PATH % 환경 변수에 포함 된 디렉토리에 있습니다.
Graph.pb 파일 Need는 그래프 정의와 체크 포인트 세트를 가져 와서 단일 파일로 연결합니다.