From 954bbe597a2fed9e39a13f0606cd11dbbf3470ba Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 3 Oct 2020 08:09:52 -0500 Subject: [PATCH] disable TF_UpdateEdge. --- src/TensorFlowNET.Core/Operations/Operation.cs | 4 +++- test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Core/Operations/Operation.cs b/src/TensorFlowNET.Core/Operations/Operation.cs index c7ab780d..6e9986e8 100644 --- a/src/TensorFlowNET.Core/Operations/Operation.cs +++ b/src/TensorFlowNET.Core/Operations/Operation.cs @@ -322,11 +322,13 @@ namespace Tensorflow // Reset cached inputs. _inputs_val = null; + _node_def = null; // after the c_api call next time _inputs is accessed // the updated inputs are reloaded from the c_api lock (Locks.ProcessWide) { - c_api.TF_UpdateEdge(_graph, output, input, tf.Status.Handle); + // disable + // c_api.TF_UpdateEdge(_graph, output, input, tf.Status.Handle); //var updated_inputs = inputs; tf.Status.Check(); } diff --git a/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj b/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj index ca4f7e21..42e28129 100644 --- a/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj +++ b/test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj @@ -47,6 +47,7 @@ +