Browse Source

0.20.0-alpha

tags/v0.20
Oceania2018 5 years ago
parent
commit
8a2782c7f0
8 changed files with 7 additions and 96 deletions
  1. +6
    -8
      src/TensorFlowNET.Core/TensorFlow.Binding.csproj
  2. +0
    -12
      src/tensorflow/README.md
  3. +0
    -23
      src/tensorflow/csharp/BUILD
  4. +0
    -7
      src/tensorflow/csharp/csni.cc
  5. +0
    -19
      src/tensorflow/csharp/eager/BUILD
  6. +0
    -4
      src/tensorflow/csharp/eager/cswrap_tfe.h
  7. +0
    -23
      src/tensorflow/csharp/eager/cswrap_tfe_src.cc
  8. +1
    -0
      test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj

+ 6
- 8
src/TensorFlowNET.Core/TensorFlow.Binding.csproj View File

@@ -5,7 +5,7 @@
<AssemblyName>TensorFlow.NET</AssemblyName>
<RootNamespace>Tensorflow</RootNamespace>
<TargetTensorFlow>2.2.0</TargetTensorFlow>
<Version>0.20.0</Version>
<Version>0.20.0-alpha</Version>
<LangVersion>8.0</LangVersion>
<Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors>
<Company>SciSharp STACK</Company>
@@ -15,17 +15,15 @@
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>http://scisharpstack.org</PackageProjectUrl>
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&amp;v=4</PackageIconUrl>
<PackageTags>TensorFlow, NumSharp, SciSharp, MachineLearning, TensorFlow.NET, C#</PackageTags>
<PackageTags>TensorFlow, NumSharp, SciSharp, MachineLearning, TensorFlow.NET, C#, TF.NET</PackageTags>
<Description>Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io</Description>
<AssemblyVersion>0.20.0.0</AssemblyVersion>
<PackageReleaseNotes>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</PackageReleaseNotes>
<PackageReleaseNotes>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.</PackageReleaseNotes>
<FileVersion>0.20.0.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>


+ 0
- 12
src/tensorflow/README.md View File

@@ -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`

+ 0
- 23
src/tensorflow/csharp/BUILD View File

@@ -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"],
)

+ 0
- 7
src/tensorflow/csharp/csni.cc View File

@@ -1,7 +0,0 @@
#include <iostream>
#include "tensorflow/c/c_api.h"

int main() {
printf("Hello from TensorFlow C library version %s", TF_Version());
return 0;
}

+ 0
- 19
src/tensorflow/csharp/eager/BUILD View File

@@ -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",

],
)

+ 0
- 4
src/tensorflow/csharp/eager/cswrap_tfe.h View File

@@ -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);

+ 0
- 23
src/tensorflow/csharp/eager/cswrap_tfe_src.cc View File

@@ -1,23 +0,0 @@
#include <cstring>
#include <thread>

#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<tensorflow::int64> input_ids = MakeTensorIDList(inputs);
}

}

+ 1
- 0
test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj View File

@@ -30,6 +30,7 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">


Loading…
Cancel
Save