Skip to content

Commit 1a5a7f8

Browse files
committed
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.
1 parent d46892b commit 1a5a7f8

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

src/TensorFlowNET.Core/Graphs/Graph.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ public partial class Graph : IPython, IDisposable
106106

107107
public Graph()
108108
{
109-
c_api_util.DownloadLibrary();
110-
111109
_handle = c_api.TF_NewGraph();
112110
Status = new Status();
113111
_nodes_by_id = new Dictionary<int, ITensorOrOperation>();
@@ -118,8 +116,6 @@ public Graph()
118116

119117
public Graph(IntPtr handle)
120118
{
121-
c_api_util.DownloadLibrary();
122-
123119
_handle = handle;
124120
Status = new Status();
125121
_nodes_by_id = new Dictionary<int, ITensorOrOperation>();

src/TensorFlowNET.Core/Status/Status.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public class Status : IDisposable
4040

4141
public Status()
4242
{
43-
c_api_util.DownloadLibrary();
4443
_handle = c_api.TF_NewStatus();
4544
}
4645

src/TensorFlowNET.Core/TensorFlowNET.Core.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ Learn more about .NET AI: https://medium.com/scisharp</Description>
5858
</ItemGroup>
5959

6060
<ItemGroup>
61-
<PackageReference Include="Google.Protobuf" Version="3.8.0" />
61+
<PackageReference Include="Google.Protobuf" Version="3.9.0" />
6262
<PackageReference Include="NumSharp" Version="0.10.3" />
63+
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="1.14.0" />
6364
</ItemGroup>
6465

6566
<ItemGroup>

src/TensorFlowNET.Core/tf.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,7 @@ public static void enable_eager_execution()
6262
context.default_execution_mode = Context.EAGER_MODE;
6363
}
6464

65-
public static string VERSION
66-
{
67-
get
68-
{
69-
c_api_util.DownloadLibrary();
70-
return c_api.StringPiece(c_api.TF_Version());
71-
}
72-
}
65+
public static string VERSION => c_api.StringPiece(c_api.TF_Version());
7366

7467
public static Session Session()
7568
{

test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,4 @@
2222
<ItemGroup>
2323
<ProjectReference Include="..\..\src\TensorFlowNET.Core\TensorFlowNET.Core.csproj" />
2424
</ItemGroup>
25-
26-
<ItemGroup>
27-
<Reference Include="NumSharp.Core">
28-
<HintPath>..\..\..\..\NumSharp\src\NumSharp.Core\bin\Debug\netstandard2.0\NumSharp.Core.dll</HintPath>
29-
</Reference>
30-
</ItemGroup>
31-
3225
</Project>

0 commit comments

Comments
 (0)