OnnxRuntime
Loading...
Searching...
No Matches
Ort::SessionOptions Struct Reference

Wrapper around OrtSessionOptions. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::SessionOptions:
Ort::detail::SessionOptionsImpl< OrtSessionOptions > Ort::detail::ConstSessionOptionsImpl< T > Ort::detail::Base< T >

Public Member Functions

 SessionOptions (std::nullptr_t)
 Create an empty SessionOptions object, must be assigned a valid one to be used.
 
 SessionOptions ()
 Wraps OrtApi::CreateSessionOptions.
 
 SessionOptions (OrtSessionOptions *p)
 Used for interop with the C API.
 
UnownedSessionOptions GetUnowned () const
 
ConstSessionOptions GetConst () const
 
- Public Member Functions inherited from Ort::detail::SessionOptionsImpl< OrtSessionOptions >
SessionOptionsImplSetIntraOpNumThreads (int intra_op_num_threads)
 Wraps OrtApi::SetIntraOpNumThreads.
 
SessionOptionsImplSetInterOpNumThreads (int inter_op_num_threads)
 Wraps OrtApi::SetInterOpNumThreads.
 
SessionOptionsImplSetGraphOptimizationLevel (GraphOptimizationLevel graph_optimization_level)
 Wraps OrtApi::SetSessionGraphOptimizationLevel.
 
SessionOptionsImplEnableCpuMemArena ()
 Wraps OrtApi::EnableCpuMemArena.
 
SessionOptionsImplDisableCpuMemArena ()
 Wraps OrtApi::DisableCpuMemArena.
 
SessionOptionsImplSetOptimizedModelFilePath (const char *optimized_model_file)
 Wraps OrtApi::SetOptimizedModelFilePath.
 
SessionOptionsImplEnableProfiling (const char *profile_file_prefix)
 Wraps OrtApi::EnableProfiling.
 
SessionOptionsImplDisableProfiling ()
 Wraps OrtApi::DisableProfiling.
 
SessionOptionsImplEnableOrtCustomOps ()
 Wraps OrtApi::EnableOrtCustomOps.
 
SessionOptionsImplEnableMemPattern ()
 Wraps OrtApi::EnableMemPattern.
 
SessionOptionsImplDisableMemPattern ()
 Wraps OrtApi::DisableMemPattern.
 
SessionOptionsImplSetExecutionMode (ExecutionMode execution_mode)
 Wraps OrtApi::SetSessionExecutionMode.
 
SessionOptionsImplSetLogId (const char *logid)
 Wraps OrtApi::SetSessionLogId.
 
SessionOptionsImplSetLogSeverityLevel (int level)
 Wraps OrtApi::SetSessionLogSeverityLevel.
 
SessionOptionsImplAdd (OrtCustomOpDomain *custom_op_domain)
 Wraps OrtApi::AddCustomOpDomain.
 
SessionOptionsImplDisablePerSessionThreads ()
 Wraps OrtApi::DisablePerSessionThreads.
 
SessionOptionsImplAddConfigEntry (const char *config_key, const char *config_value)
 Wraps OrtApi::AddSessionConfigEntry.
 
SessionOptionsImplAddInitializer (const char *name, const OrtValue *ort_val)
 Wraps OrtApi::AddInitializer.
 
SessionOptionsImplAddExternalInitializers (const std::vector< std::string > &names, const std::vector< Value > &ort_values)
 Wraps OrtApi::AddExternalInitializers.
 
SessionOptionsImplAppendExecutionProvider_CUDA (const OrtCUDAProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA.
 
SessionOptionsImplAppendExecutionProvider_CUDA_V2 (const OrtCUDAProviderOptionsV2 &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA_V2.
 
SessionOptionsImplAppendExecutionProvider_ROCM (const OrtROCMProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_ROCM.
 
SessionOptionsImplAppendExecutionProvider_OpenVINO (const OrtOpenVINOProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO.
 
SessionOptionsImplAppendExecutionProvider_TensorRT (const OrtTensorRTProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT.
 
SessionOptionsImplAppendExecutionProvider_TensorRT_V2 (const OrtTensorRTProviderOptionsV2 &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT.
 
SessionOptionsImplAppendExecutionProvider_MIGraphX (const OrtMIGraphXProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CANN.
 
SessionOptionsImplAppendExecutionProvider_CANN (const OrtCANNProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_Dnnl.
 
SessionOptionsImplAppendExecutionProvider_Dnnl (const OrtDnnlProviderOptions &provider_options)
 
SessionOptionsImplAppendExecutionProvider (const std::string &provider_name, const std::unordered_map< std::string, std::string > &provider_options={})
 Wraps OrtApi::SessionOptionsAppendExecutionProvider. Currently supports SNPE and XNNPACK.
 
SessionOptionsImplSetCustomCreateThreadFn (OrtCustomCreateThreadFn ort_custom_create_thread_fn)
 Wraps OrtApi::SessionOptionsSetCustomCreateThreadFn.
 
SessionOptionsImplSetCustomThreadCreationOptions (void *ort_custom_thread_creation_options)
 Wraps OrtApi::SessionOptionsSetCustomThreadCreationOptions.
 
SessionOptionsImplSetCustomJoinThreadFn (OrtCustomJoinThreadFn ort_custom_join_thread_fn)
 Wraps OrtApi::SessionOptionsSetCustomJoinThreadFn.
 
SessionOptionsImplRegisterCustomOpsLibrary (const char *library_name, const CustomOpConfigs &custom_op_configs={})
 
SessionOptionsImplRegisterCustomOpsUsingFunction (const char *function_name)
 Wraps OrtApi::RegisterCustomOpsUsingFunction.
 
- Public Member Functions inherited from Ort::detail::ConstSessionOptionsImpl< T >
SessionOptions Clone () const
 Creates and returns a copy of this SessionOptions object. Wraps OrtApi::CloneSessionOptions.
 
std::string GetConfigEntry (const char *config_key) const
 Wraps OrtApi::GetSessionConfigEntry.
 
bool HasConfigEntry (const char *config_key) const
 Wraps OrtApi::HasSessionConfigEntry.
 
std::string GetConfigEntryOrDefault (const char *config_key, const std::string &def)
 
- Public Member Functions inherited from Ort::detail::Base< T >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 ~Base ()
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Public Types inherited from Ort::detail::SessionOptionsImpl< OrtSessionOptions >
using B = ConstSessionOptionsImpl< OrtSessionOptions >
 
using B = Base< OrtSessionOptions >
 
- Public Types inherited from Ort::detail::ConstSessionOptionsImpl< T >
using B = Base< T >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 
- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

Wrapper around OrtSessionOptions.

Constructor & Destructor Documentation

◆ SessionOptions() [1/3]

Ort::SessionOptions::SessionOptions ( std::nullptr_t  )
inlineexplicit

Create an empty SessionOptions object, must be assigned a valid one to be used.

◆ SessionOptions() [2/3]

Ort::SessionOptions::SessionOptions ( )

◆ SessionOptions() [3/3]

Ort::SessionOptions::SessionOptions ( OrtSessionOptions p)
inlineexplicit

Used for interop with the C API.

Member Function Documentation

◆ GetConst()

ConstSessionOptions Ort::SessionOptions::GetConst ( ) const
inline

◆ GetUnowned()

UnownedSessionOptions Ort::SessionOptions::GetUnowned ( ) const
inline