Skip to content

Commit 71b2213

Browse files
committed
package native dll
1 parent 99c748f commit 71b2213

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
TensorFlow.NET provides .NET Standard binding for [TensorFlow](https://www.tensorflow.org/).
33

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

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

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

1113
### How to use
12-
Download the pre-compiled dll [here](tensorflowlib) and place it in the bin folder.
14+
Download the pre-compiled dll [here](tensorflow.so) and place it in the working folder.
15+
This is only need for Linux and Mac OS, and already packed for Windows.
16+
17+
Install TensorFlow.NET through NuGet.
18+
```sh
19+
PM> Install-Package TensorFlow.NET
20+
```
1321

1422
Import tensorflow.net.
1523
```cs

src/TensorFlowNET.Core/TensorFlowNET.Core.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

3939
<ItemGroup>
40-
<None Update="tensorflow.dll">
41-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
42-
</None>
4340
<None Update="Operations\op_list_proto_array.bin">
4441
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4542
</None>
4643
<None Update="Operations\op_list_proto_math.bin">
4744
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4845
</None>
46+
<Content CopyToOutputDirectory="PreserveNewest" Include="./runtimes/win-x64/native/tensorflow.dll" Link="tensorflow.dll" Pack="true" PackagePath="runtimes/win-x64/native/tensorflow.dll" />
4947
</ItemGroup>
5048

5149
</Project>
61.2 MB
Binary file not shown.

test/TensorFlowNET.UnitTest/GraphTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,5 +356,11 @@ public void c_api_ImportGraphDef()
356356
//graph.Dispose();
357357
s.Dispose();
358358
}
359+
360+
[TestMethod]
361+
public void c_api_ImportGraphDef_WithReturnOutputs()
362+
{
363+
364+
}
359365
}
360366
}

0 commit comments

Comments
 (0)