Skip to content

Commit fb3b942

Browse files
committed
test run on ubuntu
1 parent 8654b41 commit fb3b942

6 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,8 @@ ASALocalRun/
328328

329329
# MFractors (Xamarin productivity tool) working folder
330330
.mfractor/
331-
/tensorflowlib/win7-x64/native/libtensorflow.dll
332-
/tensorflowlib/osx/native/libtensorflow_framework.dylib
333-
/tensorflowlib/osx/native/libtensorflow.dylib
334-
/tensorflowlib/linux/native/libtensorflow_framework.so
335-
/tensorflowlib/linux/native/libtensorflow.so
336-
/src/TensorFlowNET.Core/tensorflow.dll
337331
/docs/build
338-
src/TensorFlowNET.Native/libtensorflow.dll
339332
src/TensorFlowNET.Native/bazel-*
340-
/src/TensorFlowNET.Native/libtensorflow.lib
341333
src/TensorFlowNET.Native/c_api.h
342334
/.vscode
335+
test/TensorFlowNET.Examples/mnist

‎src/TensorFlowNET.Core/TensorFlowNET.Core.csproj‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Version>0.5.1</Version>
88
<Authors>Haiping Chen</Authors>
99
<Company>SciSharp STACK</Company>
10-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
10+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1111
<Copyright>Apache 2.0</Copyright>
1212
<RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
1313
<RepositoryType>git</RepositoryType>
@@ -50,7 +50,9 @@ Bug fix.</PackageReleaseNotes>
5050
</ItemGroup>
5151

5252
<ItemGroup>
53-
<Content CopyToOutputDirectory="PreserveNewest" Include="./runtimes/win-x64/native/tensorflow.dll" Link="tensorflow.dll" Pack="true" PackagePath="runtimes/win-x64/native/tensorflow.dll" />
53+
<Content CopyToOutputDirectory="PreserveNewest" Include="../../tensorflowlib/runtimes/win-x64/native/tensorflow.dll" Link="tensorflow.dll" Pack="true" PackagePath="../../tensorflowlib/runtimes/win-x64/native/tensorflow.dll" />
54+
<Content CopyToOutputDirectory="PreserveNewest" Include="../../tensorflowlib/runtimes/linux-x64/native/libtensorflow.so" Link="libtensorflow.so" Pack="true" PackagePath="../../tensorflowlib/runtimes/linux-x64/native/libtensorflow.so" />
55+
<Content CopyToOutputDirectory="PreserveNewest" Include="../../tensorflowlib/runtimes/linux-x64/native/libtensorflow_framework.so" Link="libtensorflow_framework.so" Pack="true" PackagePath="../../tensorflowlib/runtimes/linux-x64/native/libtensorflow_framework.so" />
5456
</ItemGroup>
5557

5658
<ItemGroup>

‎tensorflowlib/README.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
TensorFlow.NET pack all required libraries in architecture-specific assemblies folders per NuGet standard.
2+
13
Here are some pre-built TensorFlow binaries you can use for each platform:
24

35
- Linux
@@ -6,7 +8,18 @@ Here are some pre-built TensorFlow binaries you can use for each platform:
68
- Mac: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.13.1.tar.gz
79
- Windows: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.13.1.zip
810

11+
### Run in Linux
12+
13+
`Install-Package TensorFlow.NET`
14+
15+
Download Linux pre-built library and unzip `libtensorflow.so` and `libtensorflow_framework.so` into current running directory.
16+
17+
### Run in Mac OS
18+
19+
### Build from source for Windows
20+
921
https://www.tensorflow.org/install/source_windows
22+
1023
pacman -S git patch unzip
1124

1225
1. Build static library

‎tensorflowlib/runtimes/linux-x64/native/libtensorflow.so‎

Whitespace-only changes.

‎tensorflowlib/runtimes/linux-x64/native/libtensorflow_framework.so‎

Whitespace-only changes.
73.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)