Class OrtROCMProviderOptions
Holds the options for configuring a ROCm Execution Provider instance
Inheritance
System.Object
OrtROCMProviderOptions
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class OrtROCMProviderOptions : SafeHandle
Constructors
| Improve this Doc View SourceOrtROCMProviderOptions()
Constructs an empty OrtROCMroviderOptions instance
Declaration
public OrtROCMProviderOptions()
Properties
| Improve this Doc View SourceIsInvalid
Overrides SafeHandle.IsInvalid
Declaration
public override bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
System.Boolean | returns true if handle is equal to Zero |
Methods
| Improve this Doc View SourceGetOptions()
Get ROCm EP provider options
Declaration
public string GetOptions()
Returns
Type | Description |
---|---|
System.String | return C# UTF-16 encoded string |
ReleaseHandle()
Overrides SafeHandle.ReleaseHandle() to properly dispose of the native instance of OrtROCMProviderOptions
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
System.Boolean | always returns true |
UpdateOptions(Dictionary<String, String>)
Updates the configuration knobs of OrtROCMProviderOptions that will eventually be used to configure a ROCm EP Please refer to the following on different key/value pairs to configure a ROCm EP and their meaning: https://onnxruntime.ai/docs/execution-providers/ROCm-ExecutionProvider.html
Declaration
public void UpdateOptions(Dictionary<string, string> providerOptions)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<, ><System.String, System.String> | providerOptions | key/value pairs used to configure a ROCm Execution Provider |