Skip to content

Commit 6bd08d6

Browse files
authored
Update Operation.Output.cs
1 parent f4067f2 commit 6bd08d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TensorFlowNET.Core/Operations/Operation.Output.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public unsafe Operation[] GetControlOutputs()
4242
if (NumControlOutputs > 0)
4343
{
4444
IntPtr control_output_handle = Marshal.AllocHGlobal(Marshal.SizeOf<IntPtr>() * NumControlOutputs);
45-
c_api.TF_OperationGetControlOutputs(_handle, control_output_handle, NumControlInputs);
46-
for (int i = 0; i < NumControlInputs; i++)
45+
c_api.TF_OperationGetControlOutputs(_handle, control_output_handle, NumControlOutputs);
46+
for (int i = 0; i < NumControlOutputs; i++)
4747
{
4848
var handle = control_output_handle + Marshal.SizeOf<IntPtr>() * i;
4949
control_outputs[i] = new Operation(*(IntPtr*)handle);

0 commit comments

Comments
 (0)