From 6ff84262fc7576eb4b790f968441aa1052629c77 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 1 Feb 2022 12:25:33 -0800 Subject: [PATCH] Add missing return status check --- csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs b/csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs index d36fbbc715289..382ffe7929de7 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs +++ b/csharp/src/Microsoft.ML.OnnxRuntime/OrtIoBinding.shared.cs @@ -101,7 +101,7 @@ public void BindInput(string name, FixedBufferOnnxValue fixedValue) /// public void SynchronizeBoundInputs() { - NativeMethods.OrtSynchronizeBoundInputs(handle); + NativeApiStatus.VerifySuccess(NativeMethods.OrtSynchronizeBoundInputs(handle)); } /// @@ -164,7 +164,7 @@ public void BindOutputToDevice(string name, OrtMemoryInfo memInfo) /// public void SynchronizeBoundOutputs() { - NativeMethods.OrtSynchronizeBoundOutputs(handle); + NativeApiStatus.VerifySuccess(NativeMethods.OrtSynchronizeBoundOutputs(handle)); } ///