mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
Add csharp API for AddSessionConfigEntry (#5072)
Co-authored-by: gwang0000 <62914304+gwang0000@users.noreply.github.com>
This commit is contained in:
parent
2c1410afe7
commit
5d60d57ce2
1 changed files with 4 additions and 0 deletions
|
|
@ -175,6 +175,10 @@ namespace Microsoft.ML.OnnxRuntime
|
|||
NativeApiStatus.VerifySuccess(NativeMethods.OrtRegisterCustomOpsLibrary(handle, libraryPath, out libraryHandle));
|
||||
}
|
||||
|
||||
public void AddSessionConfigEntry(string configKey, string configValue)
|
||||
{
|
||||
NativeApiStatus.VerifySuccess(NativeMethods.OrtAddSessionConfigEntry(handle, configKey, configValue));
|
||||
}
|
||||
#endregion
|
||||
|
||||
internal IntPtr Handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue