From 1b5445c7fbbe3cc5409208bd2bc8f6504bf12135 Mon Sep 17 00:00:00 2001 From: "Harish S. Kulkarni" Date: Thu, 11 Jul 2019 15:35:35 -0700 Subject: [PATCH] Initial commit for redistributing TF binaries as a nuget package --- src/TensorFlowNET.Redist/CommonPackage.props | 24 +++ .../TensorFlowNET.Redist.nupkgproj | 195 ++++++++++++++++++ ...orflow-cpu-darwin-x86_64-1.14.0.tar.gz.sha | 1 + ...sorflow-cpu-linux-x86_64-1.14.0.tar.gz.sha | 1 + ...nsorflow-cpu-windows-x86_64-1.14.0.zip.sha | 1 + 5 files changed, 222 insertions(+) create mode 100644 src/TensorFlowNET.Redist/CommonPackage.props create mode 100644 src/TensorFlowNET.Redist/TensorFlowNET.Redist.nupkgproj create mode 100644 src/TensorFlowNET.Redist/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz.sha create mode 100644 src/TensorFlowNET.Redist/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz.sha create mode 100644 src/TensorFlowNET.Redist/libtensorflow-cpu-windows-x86_64-1.14.0.zip.sha diff --git a/src/TensorFlowNET.Redist/CommonPackage.props b/src/TensorFlowNET.Redist/CommonPackage.props new file mode 100644 index 00000000..08fbb153 --- /dev/null +++ b/src/TensorFlowNET.Redist/CommonPackage.props @@ -0,0 +1,24 @@ + + + + + + PreserveNewest + false + %(Filename)%(Extension) + + + PreserveNewest + false + %(Filename)%(Extension) + + + + \ No newline at end of file diff --git a/src/TensorFlowNET.Redist/TensorFlowNET.Redist.nupkgproj b/src/TensorFlowNET.Redist/TensorFlowNET.Redist.nupkgproj new file mode 100644 index 00000000..06ce4974 --- /dev/null +++ b/src/TensorFlowNET.Redist/TensorFlowNET.Redist.nupkgproj @@ -0,0 +1,195 @@ + + + + $(MSBuildThisFileDirectory) + $(ProjRoot)bin\ + $(ProjRoot)obj\ + $(BinDir)packages\ + + + true + false + + x64 + netstandard2.0 + 1.14.0 + 1 + + CopyFilesFromArchive + + win + linux + osx + $(PackageRid)-$(TargetArchitecture) + + TensorFlowNET.Redist + The TensorFlow Authors + netstandard2.0 + $(MSBuildProjectName) contains the TensorFlow C library version $(TensorFlowVersion) redistributed as a NuGet package. + LICENSE.txt + true + Copyright 2019 The TensorFlow Authors. All rights reserved. + https://www.tensorflow.org + https://github.com/tensorflow/tensorflow/releases/tag/v$(TensorFlowVersion) + $(PackageTags) TensorFlow + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_downloadFiles Include="@(TensorFlowArchive);@(AdditionalDownloadFile)" Url="%(Identity)" DestinationFile="%(DownloadFile)" /> + + + + + + + + + + + + + + + + + + + @(FilesWithHashes->'%(FileHash)') + $([System.IO.File]::ReadAllText('%(LocalShaFile)')) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_fileFromArchive Include="%(TensorFlowArchive.FilesFromArchive)" ExtractDirectory="%(TensorFlowArchive.ExtractDirectory)" Runtime="%(TensorFlowArchive.Runtime)" /> + <_fileFromArchive DestinationFile="%(FileName)%(Extension)"/> + <_fileFromArchive PackagePath="runtimes\%(_fileFromArchive.Runtime)\native\%(_fileFromArchive.DestinationFile)" /> + + + <_fileFromArchive Condition="'%(DestinationFile)' == 'LICENSE'" PackagePath="THIRD_PARTY_NOTICES.txt" Runtime="" /> + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/TensorFlowNET.Redist/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz.sha b/src/TensorFlowNET.Redist/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz.sha new file mode 100644 index 00000000..951c4556 --- /dev/null +++ b/src/TensorFlowNET.Redist/libtensorflow-cpu-darwin-x86_64-1.14.0.tar.gz.sha @@ -0,0 +1 @@ +7002EF701BD23C5EF5FF94192E935F0DDF960A21BE2531CEE158586830C00E0BA889900F7F6E8AB568BEE0ACF1F5A6A246BB43D11C4109E9DC782B46377D8142 \ No newline at end of file diff --git a/src/TensorFlowNET.Redist/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz.sha b/src/TensorFlowNET.Redist/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz.sha new file mode 100644 index 00000000..784640a0 --- /dev/null +++ b/src/TensorFlowNET.Redist/libtensorflow-cpu-linux-x86_64-1.14.0.tar.gz.sha @@ -0,0 +1 @@ +E3F6D0309117E9E45780ECF8BC4D0268B3FC9F12E3E38FFE58496789330A4ACD2DC8FF721F3B8900357F6155F8A54000E45B99495F823486B558E8B42532392D \ No newline at end of file diff --git a/src/TensorFlowNET.Redist/libtensorflow-cpu-windows-x86_64-1.14.0.zip.sha b/src/TensorFlowNET.Redist/libtensorflow-cpu-windows-x86_64-1.14.0.zip.sha new file mode 100644 index 00000000..b7d6402c --- /dev/null +++ b/src/TensorFlowNET.Redist/libtensorflow-cpu-windows-x86_64-1.14.0.zip.sha @@ -0,0 +1 @@ +59A2B80B441439B851202358CE4A65BA0DDDB319A8A29E87B135DCD9954BC5B0628F2C0C8E72D6942EA3CDCE172805C2BD5421815B3D0210B62BC0936DC59A08 \ No newline at end of file