@@ -322,11 +322,13 @@ namespace Tensorflow | |||||
// Reset cached inputs. | // Reset cached inputs. | ||||
_inputs_val = null; | _inputs_val = null; | ||||
_node_def = null; | |||||
// after the c_api call next time _inputs is accessed | // after the c_api call next time _inputs is accessed | ||||
// the updated inputs are reloaded from the c_api | // the updated inputs are reloaded from the c_api | ||||
lock (Locks.ProcessWide) | 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; | //var updated_inputs = inputs; | ||||
tf.Status.Check(); | tf.Status.Check(); | ||||
} | } | ||||
@@ -47,6 +47,7 @@ | |||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="FluentAssertions" Version="5.10.3" /> | <PackageReference Include="FluentAssertions" Version="5.10.3" /> | ||||
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.138" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" /> | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" /> | ||||
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" /> | <PackageReference Include="MSTest.TestAdapter" Version="2.1.2" /> | ||||
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" /> | <PackageReference Include="MSTest.TestFramework" Version="2.1.2" /> | ||||