Oceania2018 6 years ago
parent
commit
da8f66c0c0
5 changed files with 7 additions and 14 deletions
  1. +5
    -2
      src/TensorFlowNET.Core/DisposableObject.cs
  2. +0
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefResults.cs
  3. +0
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFStatus.cs
  4. +1
    -1
      src/TensorFlowNET.Core/TensorFlowNET.Core.csproj
  5. +1
    -1
      test/TensorFlowNET.UnitTest/NameScopeTest.cs

+ 5
- 2
src/TensorFlowNET.Core/DisposableObject.cs View File

@@ -77,8 +77,11 @@ namespace Tensorflow

public void Dispose()
{
internal_dispose(true);
GC.SuppressFinalize(this);
lock(this)
{
internal_dispose(true);
GC.SuppressFinalize(this);
}
}

/// <summary>


+ 0
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefResults.cs View File

@@ -13,10 +13,5 @@ namespace Tensorflow.Framework.Models
{

}

~ScopedTFImportGraphDefResults()
{
base.Dispose();
}
}
}

+ 0
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFStatus.cs View File

@@ -5,10 +5,5 @@
public ScopedTFStatus() : base()
{
}

~ScopedTFStatus()
{
base.Dispose();
}
}
}

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

@@ -6,7 +6,7 @@
<RootNamespace>Tensorflow</RootNamespace>
<TargetTensorFlow>1.14.0</TargetTensorFlow>
<Version>0.11.1</Version>
<Authors>Haiping Chen, Meinrad Recheis</Authors>
<Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors>
<Company>SciSharp STACK</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Copyright>Apache 2.0</Copyright>


+ 1
- 1
test/TensorFlowNET.UnitTest/NameScopeTest.cs View File

@@ -44,7 +44,7 @@ namespace TensorFlowNET.UnitTest
Assert.AreEqual("", g._name_stack);
}

[TestMethod]
[TestMethod, Ignore("Unimplemented Usage")]
public void NestedNameScope_Using()
{
Graph g = tf.Graph().as_default();


Loading…
Cancel
Save