| @@ -77,8 +77,11 @@ namespace Tensorflow | |||||
| public void Dispose() | public void Dispose() | ||||
| { | { | ||||
| internal_dispose(true); | |||||
| GC.SuppressFinalize(this); | |||||
| lock(this) | |||||
| { | |||||
| internal_dispose(true); | |||||
| GC.SuppressFinalize(this); | |||||
| } | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -13,10 +13,5 @@ namespace Tensorflow.Framework.Models | |||||
| { | { | ||||
| } | } | ||||
| ~ScopedTFImportGraphDefResults() | |||||
| { | |||||
| base.Dispose(); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -5,10 +5,5 @@ | |||||
| public ScopedTFStatus() : base() | public ScopedTFStatus() : base() | ||||
| { | { | ||||
| } | } | ||||
| ~ScopedTFStatus() | |||||
| { | |||||
| base.Dispose(); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -6,7 +6,7 @@ | |||||
| <RootNamespace>Tensorflow</RootNamespace> | <RootNamespace>Tensorflow</RootNamespace> | ||||
| <TargetTensorFlow>1.14.0</TargetTensorFlow> | <TargetTensorFlow>1.14.0</TargetTensorFlow> | ||||
| <Version>0.11.1</Version> | <Version>0.11.1</Version> | ||||
| <Authors>Haiping Chen, Meinrad Recheis</Authors> | |||||
| <Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors> | |||||
| <Company>SciSharp STACK</Company> | <Company>SciSharp STACK</Company> | ||||
| <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||||
| <Copyright>Apache 2.0</Copyright> | <Copyright>Apache 2.0</Copyright> | ||||
| @@ -44,7 +44,7 @@ namespace TensorFlowNET.UnitTest | |||||
| Assert.AreEqual("", g._name_stack); | Assert.AreEqual("", g._name_stack); | ||||
| } | } | ||||
| [TestMethod] | |||||
| [TestMethod, Ignore("Unimplemented Usage")] | |||||
| public void NestedNameScope_Using() | public void NestedNameScope_Using() | ||||
| { | { | ||||
| Graph g = tf.Graph().as_default(); | Graph g = tf.Graph().as_default(); | ||||