diff --git a/.gitignore b/.gitignore index ad96cbd7..e4aba715 100644 --- a/.gitignore +++ b/.gitignore @@ -328,15 +328,8 @@ ASALocalRun/ # MFractors (Xamarin productivity tool) working folder .mfractor/ -/tensorflowlib/win7-x64/native/libtensorflow.dll -/tensorflowlib/osx/native/libtensorflow_framework.dylib -/tensorflowlib/osx/native/libtensorflow.dylib -/tensorflowlib/linux/native/libtensorflow_framework.so -/tensorflowlib/linux/native/libtensorflow.so -/src/TensorFlowNET.Core/tensorflow.dll /docs/build -src/TensorFlowNET.Native/libtensorflow.dll src/TensorFlowNET.Native/bazel-* -/src/TensorFlowNET.Native/libtensorflow.lib src/TensorFlowNET.Native/c_api.h /.vscode +test/TensorFlowNET.Examples/mnist diff --git a/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj b/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj index 7e53ca9e..41e645fc 100644 --- a/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj +++ b/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj @@ -7,7 +7,7 @@ 0.5.1 Haiping Chen SciSharp STACK - true + false Apache 2.0 https://github.com/SciSharp/TensorFlow.NET git @@ -50,7 +50,9 @@ Bug fix. - + + + diff --git a/tensorflowlib/README.md b/tensorflowlib/README.md index 5dea59ee..2a72b8a5 100644 --- a/tensorflowlib/README.md +++ b/tensorflowlib/README.md @@ -1,3 +1,5 @@ +TensorFlow.NET pack all required libraries in architecture-specific assemblies folders per NuGet standard. + Here are some pre-built TensorFlow binaries you can use for each platform: - Linux @@ -6,7 +8,18 @@ Here are some pre-built TensorFlow binaries you can use for each platform: - Mac: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.13.1.tar.gz - Windows: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.13.1.zip +### Run in Linux + +`Install-Package TensorFlow.NET` + +Download Linux pre-built library and unzip `libtensorflow.so` and `libtensorflow_framework.so` into current running directory. + +### Run in Mac OS + +### Build from source for Windows + https://www.tensorflow.org/install/source_windows + pacman -S git patch unzip 1. Build static library diff --git a/tensorflowlib/runtimes/linux-x64/native/libtensorflow.so b/tensorflowlib/runtimes/linux-x64/native/libtensorflow.so new file mode 100644 index 00000000..e69de29b diff --git a/tensorflowlib/runtimes/linux-x64/native/libtensorflow_framework.so b/tensorflowlib/runtimes/linux-x64/native/libtensorflow_framework.so new file mode 100644 index 00000000..e69de29b diff --git a/tensorflowlib/runtimes/win-x64/native/tensorflow.dll b/tensorflowlib/runtimes/win-x64/native/tensorflow.dll new file mode 100644 index 00000000..82e86b4e Binary files /dev/null and b/tensorflowlib/runtimes/win-x64/native/tensorflow.dll differ