Skip to content

Commit 69967b4

Browse files
committed
disable TF_UpdateEdge.
1 parent 8d32160 commit 69967b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/TensorFlowNET.Core/Operations/Operation.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,13 @@ public void _update_input(int index, Tensor tensor)
322322

323323
// Reset cached inputs.
324324
_inputs_val = null;
325+
_node_def = null;
325326
// after the c_api call next time _inputs is accessed
326327
// the updated inputs are reloaded from the c_api
327328
lock (Locks.ProcessWide)
328329
{
329-
c_api.TF_UpdateEdge(_graph, output, input, tf.Status.Handle);
330+
// disable
331+
// c_api.TF_UpdateEdge(_graph, output, input, tf.Status.Handle);
330332
//var updated_inputs = inputs;
331333
tf.Status.Check();
332334
}

test/TensorFlowNET.UnitTest/Tensorflow.UnitTest.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
<ItemGroup>
4949
<PackageReference Include="FluentAssertions" Version="5.10.3" />
50+
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.138" />
5051
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
5152
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
5253
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />

0 commit comments

Comments
 (0)