class OnnxRuntime::CudaProviderOptions

Overview

CUDA provider options

Defined in:

onnxruntime/provider.cr

Constructors

Instance Method Summary

Instance methods inherited from class OnnxRuntime::ProviderOptions

to_unsafe to_unsafe

Constructor Detail

def self.new(session : InferenceSession, device_id = 0, gpu_mem_limit = 0_u64, arena_extend_strategy = 0, cudnn_conv_algo_search = 0, do_copy_in_default_stream = true) #

[View source]

Instance Method Detail

def finalize #

Finalizer to release resources


[View source]
def release #

Explicitly release resources


[View source]
def to_unsafe : Pointer(OnnxRuntime::LibOnnxRuntime::OrtCUDAProviderOptionsV2) #

Get the underlying OrtCUDAProviderOptionsV2 pointer


[View source]