Browse Source

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.

tags/v0.10
Oceania2018 6 years ago
parent
commit
1a5a7f8cf6
5 changed files with 3 additions and 21 deletions
  1. +0
    -4
      src/TensorFlowNET.Core/Graphs/Graph.cs
  2. +0
    -1
      src/TensorFlowNET.Core/Status/Status.cs
  3. +2
    -1
      src/TensorFlowNET.Core/TensorFlowNET.Core.csproj
  4. +1
    -8
      src/TensorFlowNET.Core/tf.cs
  5. +0
    -7
      test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj

+ 0
- 4
src/TensorFlowNET.Core/Graphs/Graph.cs View File

@@ -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<int, ITensorOrOperation>();
@@ -118,8 +116,6 @@ namespace Tensorflow

public Graph(IntPtr handle)
{
c_api_util.DownloadLibrary();

_handle = handle;
Status = new Status();
_nodes_by_id = new Dictionary<int, ITensorOrOperation>();


+ 0
- 1
src/TensorFlowNET.Core/Status/Status.cs View File

@@ -40,7 +40,6 @@ namespace Tensorflow

public Status()
{
c_api_util.DownloadLibrary();
_handle = c_api.TF_NewStatus();
}



+ 2
- 1
src/TensorFlowNET.Core/TensorFlowNET.Core.csproj View File

@@ -58,8 +58,9 @@ Learn more about .NET AI: https://medium.com/scisharp</Description>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.8.0" />
<PackageReference Include="Google.Protobuf" Version="3.9.0" />
<PackageReference Include="NumSharp" Version="0.10.3" />
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="1.14.0" />
</ItemGroup>

<ItemGroup>


+ 1
- 8
src/TensorFlowNET.Core/tf.cs View File

@@ -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()
{


+ 0
- 7
test/TensorFlowNET.Examples/TensorFlowNET.Examples.csproj View File

@@ -22,11 +22,4 @@
<ItemGroup>
<ProjectReference Include="..\..\src\TensorFlowNET.Core\TensorFlowNET.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="NumSharp.Core">
<HintPath>..\..\..\..\NumSharp\src\NumSharp.Core\bin\Debug\netstandard2.0\NumSharp.Core.dll</HintPath>
</Reference>
</ItemGroup>

</Project>

Loading…
Cancel
Save