HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::SessionOptions Struct Reference

Wrapper around ::OrtSessionOptions. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::SessionOptions:

Public Member Functions

 SessionOptions (std::nullptr_t)
 Create an empty SessionOptions object, must be assigned a valid one to be used. More...
 
 SessionOptions ()
 Wraps OrtApi::CreateSessionOptions. More...
 
 SessionOptions (OrtSessionOptions *p)
 
- Public Member Functions inherited from Ort::detail::SessionOptionsImpl< OrtSessionOptions >
SessionOptionsImplSetIntraOpNumThreads (int intra_op_num_threads)
 Wraps OrtApi::SetIntraOpNumThreads. More...
 
SessionOptionsImplSetInterOpNumThreads (int inter_op_num_threads)
 Wraps OrtApi::SetInterOpNumThreads. More...
 
SessionOptionsImplSetGraphOptimizationLevel (GraphOptimizationLevel graph_optimization_level)
 Wraps OrtApi::SetSessionGraphOptimizationLevel. More...
 
SessionOptionsImplSetDeterministicCompute (bool value)
 Wraps OrtApi::SetDeterministicCompute. More...
 
SessionOptionsImplEnableCpuMemArena ()
 Wraps OrtApi::EnableCpuMemArena. More...
 
SessionOptionsImplDisableCpuMemArena ()
 Wraps OrtApi::DisableCpuMemArena. More...
 
SessionOptionsImplSetOptimizedModelFilePath (const ORTCHAR_T *optimized_model_file)
 Wraps OrtApi::SetOptimizedModelFilePath. More...
 
SessionOptionsImplEnableProfiling (const ORTCHAR_T *profile_file_prefix)
 Wraps OrtApi::EnableProfiling. More...
 
SessionOptionsImplDisableProfiling ()
 Wraps OrtApi::DisableProfiling. More...
 
SessionOptionsImplEnableOrtCustomOps ()
 Wraps OrtApi::EnableOrtCustomOps. More...
 
SessionOptionsImplEnableMemPattern ()
 Wraps OrtApi::EnableMemPattern. More...
 
SessionOptionsImplDisableMemPattern ()
 Wraps OrtApi::DisableMemPattern. More...
 
SessionOptionsImplSetExecutionMode (ExecutionMode execution_mode)
 Wraps OrtApi::SetSessionExecutionMode. More...
 
SessionOptionsImplSetLogId (const char *logid)
 Wraps OrtApi::SetSessionLogId. More...
 
SessionOptionsImplSetLogSeverityLevel (int level)
 Wraps OrtApi::SetSessionLogSeverityLevel. More...
 
SessionOptionsImplAdd (OrtCustomOpDomain *custom_op_domain)
 Wraps OrtApi::AddCustomOpDomain. More...
 
SessionOptionsImplDisablePerSessionThreads ()
 Wraps OrtApi::DisablePerSessionThreads. More...
 
SessionOptionsImplAddConfigEntry (const char *config_key, const char *config_value)
 Wraps OrtApi::AddSessionConfigEntry. More...
 
SessionOptionsImplAddInitializer (const char *name, const OrtValue *ort_val)
 Wraps OrtApi::AddInitializer. More...
 
SessionOptionsImplAddExternalInitializers (const std::vector< std::string > &names, const std::vector< Value > &ort_values)
 Wraps OrtApi::AddExternalInitializers. More...
 
SessionOptionsImplAppendExecutionProvider_CUDA (const OrtCUDAProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA. More...
 
SessionOptionsImplAppendExecutionProvider_CUDA_V2 (const OrtCUDAProviderOptionsV2 &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA_V2. More...
 
SessionOptionsImplAppendExecutionProvider_ROCM (const OrtROCMProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_ROCM. More...
 
SessionOptionsImplAppendExecutionProvider_OpenVINO (const OrtOpenVINOProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO_V2. More...
 
SessionOptionsImplAppendExecutionProvider_OpenVINO_V2 (const std::unordered_map< std::string, std::string > &provider_options={})
 
SessionOptionsImplAppendExecutionProvider_TensorRT (const OrtTensorRTProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT. More...
 
SessionOptionsImplAppendExecutionProvider_TensorRT_V2 (const OrtTensorRTProviderOptionsV2 &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT. More...
 
SessionOptionsImplAppendExecutionProvider_MIGraphX (const OrtMIGraphXProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_CANN. More...
 
SessionOptionsImplAppendExecutionProvider_CANN (const OrtCANNProviderOptions &provider_options)
 Wraps OrtApi::SessionOptionsAppendExecutionProvider_Dnnl. More...
 
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 QNN, SNPE and XNNPACK. More...
 
SessionOptionsImplSetCustomCreateThreadFn (OrtCustomCreateThreadFn ort_custom_create_thread_fn)
 Wraps OrtApi::SessionOptionsSetCustomCreateThreadFn. More...
 
SessionOptionsImplSetCustomThreadCreationOptions (void *ort_custom_thread_creation_options)
 Wraps OrtApi::SessionOptionsSetCustomThreadCreationOptions. More...
 
SessionOptionsImplSetCustomJoinThreadFn (OrtCustomJoinThreadFn ort_custom_join_thread_fn)
 Wraps OrtApi::SessionOptionsSetCustomJoinThreadFn. More...
 
SessionOptionsImplRegisterCustomOpsLibrary (const ORTCHAR_T *library_name, const CustomOpConfigs &custom_op_configs={})
 
SessionOptionsImplRegisterCustomOpsUsingFunction (const char *function_name)
 Wraps OrtApi::RegisterCustomOpsUsingFunction. More...
 
- Public Member Functions inherited from Ort::detail::ConstSessionOptionsImpl< OrtSessionOptions >
SessionOptions Clone () const
 Creates and returns a copy of this SessionOptions object. Wraps OrtApi::CloneSessionOptions. More...
 
std::string GetConfigEntry (const char *config_key) const
 Wraps OrtApi::GetSessionConfigEntry. More...
 
bool HasConfigEntry (const char *config_key) const
 Wraps OrtApi::HasSessionConfigEntry. More...
 
std::string GetConfigEntryOrDefault (const char *config_key, const std::string &def)
 
- Public Member Functions inherited from Ort::detail::Base< OrtSessionOptions >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
 ~Base ()
 
Baseoperator= (const Base &)=delete
 
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. More...
 

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< OrtSessionOptions >
using B = Base< OrtSessionOptions >
 
- Public Types inherited from Ort::detail::Base< OrtSessionOptions >
using contained_type = OrtSessionOptions
 
- Protected Attributes inherited from Ort::detail::Base< OrtSessionOptions >
contained_typep_
 

Detailed Description

Wrapper around ::OrtSessionOptions.

Definition at line 913 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

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

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

Definition at line 914 of file onnxruntime_cxx_api.h.

Ort::SessionOptions::SessionOptions ( )
inline

Wraps OrtApi::CreateSessionOptions.

Definition at line 1029 of file onnxruntime_cxx_inline.h.

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

Definition at line 916 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following files: