diff --git a/src/TensorFlowNET.Core/Eager/EagerRunner.TFE_Execute.cs b/src/TensorFlowNET.Core/Eager/EagerRunner.TFE_Execute.cs index 3806b3ad..018ba921 100644 --- a/src/TensorFlowNET.Core/Eager/EagerRunner.TFE_Execute.cs +++ b/src/TensorFlowNET.Core/Eager/EagerRunner.TFE_Execute.cs @@ -42,7 +42,7 @@ namespace Tensorflow.Eager object[] attrs, int num_outputs) { - var status = tf.Status; + var status = new Status(); var op = GetOp(ctx, op_name, status); c_api.TFE_OpSetDevice(op, device_name, status); if (status.ok()) 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/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