diff --git a/src/TensorFlowNET.Core/Tensorflow.Binding.csproj b/src/TensorFlowNET.Core/Tensorflow.Binding.csproj
index d6c039c9..09f5b077 100644
--- a/src/TensorFlowNET.Core/Tensorflow.Binding.csproj
+++ b/src/TensorFlowNET.Core/Tensorflow.Binding.csproj
@@ -5,7 +5,7 @@
Tensorflow.Binding
Tensorflow
2.10.0
- 1.0.0
+ 0.100.5
10.0
enable
Haiping Chen, Meinrad Recheis, Eli Belash
@@ -20,7 +20,7 @@
Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io
- 1.0.0.0
+ 0.100.5.0
tf.net 0.100.x and above are based on tensorflow native 2.10.0
@@ -38,7 +38,7 @@ https://tensorflownet.readthedocs.io
tf.net 0.7x.x aligns with TensorFlow v2.7.x native library.
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
- 1.0.0.0
+ 0.100.5.0
LICENSE
true
packages
diff --git a/src/TensorFlowNET.Core/Variables/BaseResourceVariable.cs b/src/TensorFlowNET.Core/Variables/BaseResourceVariable.cs
index 52ca328e..b9a7022a 100644
--- a/src/TensorFlowNET.Core/Variables/BaseResourceVariable.cs
+++ b/src/TensorFlowNET.Core/Variables/BaseResourceVariable.cs
@@ -102,7 +102,7 @@ namespace Tensorflow
if (handle is EagerTensor)
{
_handle = handle.EagerTensorHandle.DangerousGetHandle();
- eager_resource_deleter = new EagerResourceDeleter(handle, handle.Device);
+ // eager_resource_deleter = new EagerResourceDeleter(handle, handle.Device);
}
else if(handle is null)
{
diff --git a/src/TensorFlowNET.Core/Variables/EagerResourceDeleter.cs b/src/TensorFlowNET.Core/Variables/EagerResourceDeleter.cs
index 8f3685cc..77bf471b 100644
--- a/src/TensorFlowNET.Core/Variables/EagerResourceDeleter.cs
+++ b/src/TensorFlowNET.Core/Variables/EagerResourceDeleter.cs
@@ -14,9 +14,6 @@ namespace Tensorflow.Variables
_tensor = handle;
_handle = handle.EagerTensorHandle.DangerousGetHandle();
_handle_device = handle_device;
-
- bool success = false;
- handle.EagerTensorHandle.DangerousAddRef(ref success);
}
protected override void DisposeUnmanagedResources(IntPtr handle)
@@ -27,8 +24,6 @@ namespace Tensorflow.Variables
tf.Runner.TFE_Execute(tf.Context, _handle_device, "DestroyResourceOp",
new[] { _tensor },
new object[] { "ignore_lookup_error", true }, 0);
-
- _tensor.EagerTensorHandle.DangerousRelease();
}
}
}
diff --git a/src/TensorFlowNET.Keras/BackendImpl.cs b/src/TensorFlowNET.Keras/BackendImpl.cs
index 9059a1d8..80403ad6 100644
--- a/src/TensorFlowNET.Keras/BackendImpl.cs
+++ b/src/TensorFlowNET.Keras/BackendImpl.cs
@@ -138,6 +138,9 @@ namespace Tensorflow.Keras
ops.set_default_session(tf.Session(ops.get_default_graph()));
tf.enable_eager_execution();
tf.Runner.ClearEagerOperationMap();
+
+ GC.Collect();
+ GC.WaitForPendingFinalizers();
}
public void manual_variable_initialization(bool value)
{
diff --git a/src/TensorFlowNET.Keras/Tensorflow.Keras.csproj b/src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
index a5254edf..8b3c9265 100644
--- a/src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
+++ b/src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
@@ -7,7 +7,7 @@
enable
Tensorflow.Keras
AnyCPU;x64
- 1.0.0
+ 0.10.5
Haiping Chen
Keras for .NET
Apache 2.0, Haiping Chen 2023
@@ -38,8 +38,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
Git
true
Open.snk
- 1.0.0.0
- 1.0.0.0
+ 0.10.5.0
+ 0.10.5.0
LICENSE
Debug;Release;GPU