From 1a5a7f8cf67f64d0f8933bc4b9150023b13e92fa Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 13 Jul 2019 07:53:40 -0500 Subject: [PATCH] Released the SciSharp.TensorFlow.Redist. It's a migration from Microsoft.ML.TensorFlow.Redist. ML.NET team will not maintain the package since ML.NET v1.3.0. --- src/TensorFlowNET.Core/Graphs/Graph.cs | 4 ---- src/TensorFlowNET.Core/Status/Status.cs | 1 - src/TensorFlowNET.Core/TensorFlowNET.Core.csproj | 3 ++- src/TensorFlowNET.Core/tf.cs | 9 +-------- .../TensorFlowNET.Examples/TensorFlowNET.Examples.csproj | 7 ------- 5 files changed, 3 insertions(+), 21 deletions(-) diff --git a/src/TensorFlowNET.Core/Graphs/Graph.cs b/src/TensorFlowNET.Core/Graphs/Graph.cs index ab4bdb0a..dd2f6cb4 100644 --- a/src/TensorFlowNET.Core/Graphs/Graph.cs +++ b/src/TensorFlowNET.Core/Graphs/Graph.cs @@ -106,8 +106,6 @@ namespace Tensorflow public Graph() { - c_api_util.DownloadLibrary(); - _handle = c_api.TF_NewGraph(); Status = new Status(); _nodes_by_id = new Dictionary(); @@ -118,8 +116,6 @@ namespace Tensorflow public Graph(IntPtr handle) { - c_api_util.DownloadLibrary(); - _handle = handle; Status = new Status(); _nodes_by_id = new Dictionary(); diff --git a/src/TensorFlowNET.Core/Status/Status.cs b/src/TensorFlowNET.Core/Status/Status.cs index fb0a9177..78844a45 100644 --- a/src/TensorFlowNET.Core/Status/Status.cs +++ b/src/TensorFlowNET.Core/Status/Status.cs @@ -40,7 +40,6 @@ namespace Tensorflow public Status() { - c_api_util.DownloadLibrary(); _handle = c_api.TF_NewStatus(); } diff --git a/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj b/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj index b929f5fe..cc8ea8ea 100644 --- a/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj +++ b/src/TensorFlowNET.Core/TensorFlowNET.Core.csproj @@ -58,8 +58,9 @@ Learn more about .NET AI: https://medium.com/scisharp - + + diff --git a/src/TensorFlowNET.Core/tf.cs b/src/TensorFlowNET.Core/tf.cs index 1abe98bb..fe709c5b 100644 --- a/src/TensorFlowNET.Core/tf.cs +++ b/src/TensorFlowNET.Core/tf.cs @@ -62,14 +62,7 @@ namespace Tensorflow context.default_execution_mode = Context.EAGER_MODE; } - public static string VERSION - { - get - { - c_api_util.DownloadLibrary(); - return c_api.StringPiece(c_api.TF_Version()); - } - } + public static string VERSION => c_api.StringPiece(c_api.TF_Version()); public static Session Session() { diff --git a/test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj b/test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj index e64e6df8..c9b02f0f 100644 --- a/test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj +++ b/test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj @@ -22,11 +22,4 @@ - - - - ..\..\..\..\NumSharp\src\NumSharp.Core\bin\Debug\netstandard2.0\NumSharp.Core.dll - - -