Browse Source

package native dll

tags/v0.1.0-Tensor
Oceania2018 6 years ago
parent
commit
71b2213b26
4 changed files with 18 additions and 6 deletions
  1. +10
    -2
      README.md
  2. +2
    -4
      src/TensorFlowNET.Core/TensorFlowNET.Core.csproj
  3. BIN
      src/TensorFlowNET.Core/runtimes/win-x64/native/tensorflow.dll
  4. +6
    -0
      test/TensorFlowNET.UnitTest/GraphTest.cs

+ 10
- 2
README.md View File

@@ -2,14 +2,22 @@
TensorFlow.NET provides .NET Standard binding for [TensorFlow](https://www.tensorflow.org/).

[![Join the chat at https://gitter.im/publiclab/publiclab](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sci-sharp/community)
![Tensorflow.NET](https://ci.appveyor.com/api/projects/status/tensorflow-net-p7kmsjyo10ey?svg=true)
[![Tensorflow.NET](https://ci.appveyor.com/api/projects/status/tensorflow-net-p7kmsjyo10ey?svg=true)](https://ci.appveyor.com/project/Haiping-Chen/tensorflow-net)
[![codecov](https://codecov.io/gh/SciSharp/NumSharp/branch/master/graph/badge.svg)](https://codecov.io/gh/SciSharp/NumSharp)
[![NuGet](https://img.shields.io/nuget/dt/TensorFlow.NET.svg)](https://www.nuget.org/packages/TensorFlow.NET)

TensorFlow.NET is a member project of [SciSharp](https://github.com/SciSharp) stack.

![tensors_flowing](docs/assets/tensors_flowing.gif)

### How to use
Download the pre-compiled dll [here](tensorflowlib) and place it in the bin folder.
Download the pre-compiled dll [here](tensorflow.so) and place it in the working folder.
This is only need for Linux and Mac OS, and already packed for Windows.

Install TensorFlow.NET through NuGet.
```sh
PM> Install-Package TensorFlow.NET
```

Import tensorflow.net.
```cs


+ 2
- 4
src/TensorFlowNET.Core/TensorFlowNET.Core.csproj View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@@ -37,15 +37,13 @@
</ItemGroup>

<ItemGroup>
<None Update="tensorflow.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Operations\op_list_proto_array.bin">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Operations\op_list_proto_math.bin">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Content CopyToOutputDirectory="PreserveNewest" Include="./runtimes/win-x64/native/tensorflow.dll" Link="tensorflow.dll" Pack="true" PackagePath="runtimes/win-x64/native/tensorflow.dll" />
</ItemGroup>

</Project>

BIN
src/TensorFlowNET.Core/runtimes/win-x64/native/tensorflow.dll View File


+ 6
- 0
test/TensorFlowNET.UnitTest/GraphTest.cs View File

@@ -356,5 +356,11 @@ namespace TensorFlowNET.UnitTest
//graph.Dispose();
s.Dispose();
}

[TestMethod]
public void c_api_ImportGraphDef_WithReturnOutputs()
{

}
}
}

Loading…
Cancel
Save