@@ -31,8 +31,6 @@ Install TF.NET through NuGet. | |||||
PM> Install-Package TensorFlow.NET | 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. | Import TF.NET. | ||||
```cs | ```cs | ||||
@@ -1,4 +1,4 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | |||||
<Project Sdk="Microsoft.NET.Sdk"> | |||||
<PropertyGroup> | <PropertyGroup> | ||||
<OutputType>Exe</OutputType> | <OutputType>Exe</OutputType> | ||||
@@ -6,17 +6,15 @@ | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" /> | |||||
<None Remove="tensorflow.dll" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj" /> | |||||
<PackageReference Include="BenchmarkDotNet" Version="0.11.5" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<None Update="tensorflow.dll"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</None> | |||||
<ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |
@@ -78,6 +78,7 @@ namespace TensorFlowNET.Examples | |||||
success.ForEach(x => Console.WriteLine($"{x} is OK!", Color.Green)); | success.ForEach(x => Console.WriteLine($"{x} is OK!", Color.Green)); | ||||
errors.ForEach(x => Console.WriteLine($"{x} is Failed!", Color.Red)); | errors.ForEach(x => Console.WriteLine($"{x} is Failed!", Color.Red)); | ||||
Console.WriteLine($"{examples.Length} examples are completed."); | |||||
Console.ReadLine(); | Console.ReadLine(); | ||||
} | } | ||||
} | } | ||||