Show / Hide Table of Contents

Class OrtCUDAProviderOptions

Holds the options for configuring a CUDA Execution Provider instance

Inheritance
object
CriticalFinalizerObject
SafeHandle
OrtCUDAProviderOptions
Implements
IDisposable
Inherited Members
SafeHandle.handle
SafeHandle.Close()
SafeHandle.DangerousAddRef(ref bool)
SafeHandle.DangerousGetHandle()
SafeHandle.DangerousRelease()
SafeHandle.Dispose()
SafeHandle.Dispose(bool)
SafeHandle.SetHandle(nint)
SafeHandle.SetHandleAsInvalid()
SafeHandle.IsClosed
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class OrtCUDAProviderOptions : SafeHandle, IDisposable

Constructors

| Improve this Doc View Source

OrtCUDAProviderOptions()

Constructs an empty OrtCUDAroviderOptions instance

Declaration
public OrtCUDAProviderOptions()

Properties

| Improve this Doc View Source

IsInvalid

Overrides SafeHandle.IsInvalid

Declaration
public override bool IsInvalid { get; }
Property Value
Type Description
bool

returns true if handle is equal to Zero

Overrides
SafeHandle.IsInvalid

Methods

| Improve this Doc View Source

GetOptions()

Get CUDA EP provider options

Declaration
public string GetOptions()
Returns
Type Description
string

return C# UTF-16 encoded string

| Improve this Doc View Source

ReleaseHandle()

Overrides SafeHandle.ReleaseHandle() to properly dispose of the native instance of OrtCUDAProviderOptions

Declaration
protected override bool ReleaseHandle()
Returns
Type Description
bool

always returns true

Overrides
SafeHandle.ReleaseHandle()
| Improve this Doc View Source

UpdateOptions(Dictionary<string, string>)

Updates the configuration knobs of OrtCUDAProviderOptions that will eventually be used to configure a CUDA EP Please refer to the following on different key/value pairs to configure a CUDA EP and their meaning: https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html

Declaration
public void UpdateOptions(Dictionary<string, string> providerOptions)
Parameters
Type Name Description
Dictionary<string, string> providerOptions

key/value pairs used to configure a CUDA Execution Provider

Implements

IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top