Browse Source

remove tensorflow binary from Benchmark project.

tags/v0.10
Oceania2018 6 years ago
parent
commit
3e69c5bf8a
4 changed files with 5 additions and 8 deletions
  1. +0
    -2
      README.md
  2. +4
    -6
      src/TensorFlowNet.Benchmarks/TensorFlowNet.Benchmark.csproj
  3. BIN
      src/TensorFlowNet.Benchmarks/tensorflow.dll
  4. +1
    -0
      test/TensorFlowNET.Examples/Program.cs

+ 0
- 2
README.md View File

@@ -31,8 +31,6 @@ Install TF.NET through NuGet.
PM> Install-Package TensorFlow.NET
```

If you are using Linux or Mac OS, please download the pre-compiled dll [here](tensorflowlib) and place it in the working folder. This is only need for Linux and Mac OS, and already packed into NuGet for Windows.

Import TF.NET.

```cs


+ 4
- 6
src/TensorFlowNet.Benchmarks/TensorFlowNet.Benchmark.csproj View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
@@ -6,17 +6,15 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
<None Remove="tensorflow.dll" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj" />
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" />
</ItemGroup>
<ItemGroup>
<None Update="tensorflow.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj" />
</ItemGroup>
</Project>

BIN
src/TensorFlowNet.Benchmarks/tensorflow.dll View File


+ 1
- 0
test/TensorFlowNET.Examples/Program.cs View File

@@ -78,6 +78,7 @@ namespace TensorFlowNET.Examples
success.ForEach(x => Console.WriteLine($"{x} is OK!", Color.Green));
errors.ForEach(x => Console.WriteLine($"{x} is Failed!", Color.Red));

Console.WriteLine($"{examples.Length} examples are completed.");
Console.ReadLine();
}
}


Loading…
Cancel
Save