Skip to content

Commit

Permalink
Add missing return status check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Feb 1, 2022
1 parent 22e7595 commit 6ff8426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void BindInput(string name, FixedBufferOnnxValue fixedValue)
/// </summary>
public void SynchronizeBoundInputs()
{
NativeMethods.OrtSynchronizeBoundInputs(handle);
NativeApiStatus.VerifySuccess(NativeMethods.OrtSynchronizeBoundInputs(handle));
}

/// <summary>
Expand Down Expand Up @@ -164,7 +164,7 @@ public void BindOutputToDevice(string name, OrtMemoryInfo memInfo)
/// </summary>
public void SynchronizeBoundOutputs()
{
NativeMethods.OrtSynchronizeBoundOutputs(handle);
NativeApiStatus.VerifySuccess(NativeMethods.OrtSynchronizeBoundOutputs(handle));
}

/// <summary>
Expand Down

0 comments on commit 6ff8426

Please sign in to comment.