diff --git a/src/TensorFlowNET.Core/TensorFlow.Binding.csproj b/src/TensorFlowNET.Core/TensorFlow.Binding.csproj index f767c03d..98c8263e 100644 --- a/src/TensorFlowNET.Core/TensorFlow.Binding.csproj +++ b/src/TensorFlowNET.Core/TensorFlow.Binding.csproj @@ -5,7 +5,7 @@ TensorFlow.NET Tensorflow 2.2.0 - 0.20.0 + 0.20.0-alpha 8.0 Haiping Chen, Meinrad Recheis, Eli Belash SciSharp STACK @@ -15,17 +15,15 @@ git http://scisharpstack.org https://avatars3.githubusercontent.com/u/44989469?s=200&v=4 - TensorFlow, NumSharp, SciSharp, MachineLearning, TensorFlow.NET, C# + TensorFlow, NumSharp, SciSharp, MachineLearning, TensorFlow.NET, C#, TF.NET Google's TensorFlow full binding in .NET Standard. Building, training and infering deep learning models. https://tensorflownet.readthedocs.io 0.20.0.0 - Changes since v0.15.0: -1: Add TransformGraphWithStringInputs. -2: tf.trainer.load_graph, tf.trainer.freeze_graph -3: Import Protobuf.Text -4: Support YOLOv3 object detection -5: Add implicitation for Operation to RefVariable + tf.net 0.20.x and above are based on tensorflow native 2.x. +Eager Mode is added finally. +It's not stable at this moment and missing many APIs, tf.net 0.15.x is more stable for production. +Please be patient, we're working hard on missing functions, providing full tensorflow binding is our mission. 0.20.0.0 LICENSE true diff --git a/src/tensorflow/README.md b/src/tensorflow/README.md deleted file mode 100644 index d3ae1e81..00000000 --- a/src/tensorflow/README.md +++ /dev/null @@ -1,12 +0,0 @@ -### How to compile CSharp Native Interface - - -git clone https://github.com/tensorflow/tensorflow - -`cd tensorflow/tensorflow` - -copy `csharp` folder to `tensorflow`, the csharp folder should be in the same parent directory with other language binding. - -`cd csharp` - -`bazel build //tensorflow/csharp:csni` \ No newline at end of file diff --git a/src/tensorflow/csharp/BUILD b/src/tensorflow/csharp/BUILD deleted file mode 100644 index bcb502d5..00000000 --- a/src/tensorflow/csharp/BUILD +++ /dev/null @@ -1,23 +0,0 @@ -# Description: -# CSharp Native Interface library intended for implementing the -# TensorFlow .NET Standard API using the TensorFlow C library. -package( - default_visibility = ["//visibility:private"], -) - -licenses(["notice"]) # Apache 2.0 - -load( - "//tensorflow:tensorflow.bzl", - "tf_cc_binary" -) - - - -tf_cc_binary( - name = "csni", - srcs = ["csni.cc"], - deps = [ - "//tensorflow/c:c_api", - "//tensorflow/csharp/eager:cswrap_tfe_lib"], -) diff --git a/src/tensorflow/csharp/csni.cc b/src/tensorflow/csharp/csni.cc deleted file mode 100644 index a7f08f2f..00000000 --- a/src/tensorflow/csharp/csni.cc +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include "tensorflow/c/c_api.h" - -int main() { - printf("Hello from TensorFlow C library version %s", TF_Version()); - return 0; -} \ No newline at end of file diff --git a/src/tensorflow/csharp/eager/BUILD b/src/tensorflow/csharp/eager/BUILD deleted file mode 100644 index a44d69cf..00000000 --- a/src/tensorflow/csharp/eager/BUILD +++ /dev/null @@ -1,19 +0,0 @@ -load("//tensorflow:tensorflow.bzl", "tf_cc_binary") - -cc_library( - name = "cswrap_tfe_lib", - srcs = [ - "cswrap_tfe_src.cc", - ], - hdrs = [ - "cswrap_tfe.h", - ], - visibility = [ - "//learning/deepmind/courier:__subpackages__", - "//tensorflow:internal", - ], - deps = [ - "//tensorflow/c:c_api", - - ], -) \ No newline at end of file diff --git a/src/tensorflow/csharp/eager/cswrap_tfe.h b/src/tensorflow/csharp/eager/cswrap_tfe.h deleted file mode 100644 index a2901f3c..00000000 --- a/src/tensorflow/csharp/eager/cswrap_tfe.h +++ /dev/null @@ -1,4 +0,0 @@ -// Record the gradient for a given op. -extern void TFE_Py_RecordGradient(const char* op_name, void* inputs, - void* attrs, void* results, - const char* name); \ No newline at end of file diff --git a/src/tensorflow/csharp/eager/cswrap_tfe_src.cc b/src/tensorflow/csharp/eager/cswrap_tfe_src.cc deleted file mode 100644 index 6fbeaf03..00000000 --- a/src/tensorflow/csharp/eager/cswrap_tfe_src.cc +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include - -#include "tensorflow/core/lib/core/errors.h" -#include "cswrap_tfe.h" - -#include "tensorflow/c/c_api.h" -#include "tensorflow/c/c_api_internal.h" - -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - - -namespace { - -void RecordGradient(const char* op_name, void* inputs, - void* attrs, void* results, - const char* name) { - // std::vector input_ids = MakeTensorIDList(inputs); - -} - -} \ No newline at end of file diff --git a/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj b/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj index dcde1cdd..a7f81828 100644 --- a/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj +++ b/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj @@ -30,6 +30,7 @@ true + x64