HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::detail::SessionOptionsImpl< T > Struct Template Reference

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::detail::SessionOptionsImpl< T >:

Public Types

using B = ConstSessionOptionsImpl< T >
 
using B = Base< T >
 
- Public Types inherited from Ort::detail::ConstSessionOptionsImpl< T >
using B = Base< T >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 

Public Member Functions

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< T >
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< 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. More...
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

template<typename T>
struct Ort::detail::SessionOptionsImpl< T >

Definition at line 841 of file onnxruntime_cxx_api.h.

Member Typedef Documentation

template<typename T>
using Ort::detail::SessionOptionsImpl< T >::B = ConstSessionOptionsImpl<T>

Definition at line 842 of file onnxruntime_cxx_api.h.

template<typename T>
using Ort::detail::ConstSessionOptionsImpl< T >::B = Base<T>

Definition at line 830 of file onnxruntime_cxx_api.h.

Member Function Documentation

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::Add ( OrtCustomOpDomain custom_op_domain)
inline

Wraps OrtApi::AddCustomOpDomain.

Definition at line 732 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AddConfigEntry ( const char *  config_key,
const char *  config_value 
)
inline

Wraps OrtApi::AddSessionConfigEntry.

Definition at line 738 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AddExternalInitializers ( const std::vector< std::string > &  names,
const std::vector< Value > &  ort_values 
)
inline

Wraps OrtApi::AddExternalInitializers.

Definition at line 756 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AddInitializer ( const char *  name,
const OrtValue ort_val 
)
inline

Wraps OrtApi::AddInitializer.

Definition at line 744 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider ( const std::string provider_name,
const std::unordered_map< std::string, std::string > &  provider_options = {} 
)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider. Currently supports QNN, SNPE and XNNPACK.

Definition at line 823 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_CANN ( const OrtCANNProviderOptions provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_Dnnl.

Definition at line 811 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_CUDA ( const OrtCUDAProviderOptions &  provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA.

Definition at line 775 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_CUDA_V2 ( const OrtCUDAProviderOptionsV2 provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_CUDA_V2.

Definition at line 781 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_Dnnl ( const OrtDnnlProviderOptions provider_options)
inline

Definition at line 817 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_MIGraphX ( const OrtMIGraphXProviderOptions &  provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_CANN.

Wraps OrtApi::SessionOptionsAppendExecutionProvider_MIGraphX

Definition at line 805 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_OpenVINO ( const OrtOpenVINOProviderOptions &  provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO_V2.

Wraps OrtApi::SessionOptionsAppendExecutionProvider_OpenVINO

Definition at line 863 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_OpenVINO_V2 ( const std::unordered_map< std::string, std::string > &  provider_options = {})
inline

Definition at line 869 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_ROCM ( const OrtROCMProviderOptions &  provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_ROCM.

Definition at line 787 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_TensorRT ( const OrtTensorRTProviderOptions &  provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT.

Definition at line 793 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::AppendExecutionProvider_TensorRT_V2 ( const OrtTensorRTProviderOptionsV2 provider_options)
inline

Wraps OrtApi::SessionOptionsAppendExecutionProvider_TensorRT.

Definition at line 799 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::DisableCpuMemArena ( )
inline

Wraps OrtApi::DisableCpuMemArena.

Definition at line 708 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::DisableMemPattern ( )
inline

Wraps OrtApi::DisableMemPattern.

Definition at line 696 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::DisablePerSessionThreads ( )
inline

Wraps OrtApi::DisablePerSessionThreads.

Definition at line 750 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::DisableProfiling ( )
inline

Wraps OrtApi::DisableProfiling.

Definition at line 678 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::EnableCpuMemArena ( )
inline

Wraps OrtApi::EnableCpuMemArena.

Definition at line 702 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::EnableMemPattern ( )
inline

Wraps OrtApi::EnableMemPattern.

Definition at line 690 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::EnableOrtCustomOps ( )
inline

Wraps OrtApi::EnableOrtCustomOps.

Definition at line 684 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::EnableProfiling ( const ORTCHAR_T *  profile_file_prefix)
inline

Wraps OrtApi::EnableProfiling.

Definition at line 672 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::RegisterCustomOpsLibrary ( const ORTCHAR_T *  library_name,
const CustomOpConfigs custom_op_configs = {} 
)
inline

Definition at line 889 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::RegisterCustomOpsUsingFunction ( const char *  function_name)
inline

Wraps OrtApi::RegisterCustomOpsUsingFunction.

Definition at line 902 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetCustomCreateThreadFn ( OrtCustomCreateThreadFn  ort_custom_create_thread_fn)
inline

Wraps OrtApi::SessionOptionsSetCustomCreateThreadFn.

Definition at line 845 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetCustomJoinThreadFn ( OrtCustomJoinThreadFn  ort_custom_join_thread_fn)
inline

Wraps OrtApi::SessionOptionsSetCustomJoinThreadFn.

Registers the custom operator from the specified shared library via OrtApi::RegisterCustomOpsLibrary_V2. The custom operator configurations are optional. If provided, custom operator configs are set via OrtApi::AddSessionConfigEntry.

Definition at line 857 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetCustomThreadCreationOptions ( void ort_custom_thread_creation_options)
inline

Wraps OrtApi::SessionOptionsSetCustomThreadCreationOptions.

Definition at line 851 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetDeterministicCompute ( bool  value)
inline

Wraps OrtApi::SetDeterministicCompute.

Definition at line 660 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetExecutionMode ( ExecutionMode  execution_mode)
inline

Wraps OrtApi::SetSessionExecutionMode.

Definition at line 714 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetGraphOptimizationLevel ( GraphOptimizationLevel  graph_optimization_level)
inline

Wraps OrtApi::SetSessionGraphOptimizationLevel.

Definition at line 654 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetInterOpNumThreads ( int  inter_op_num_threads)
inline

Wraps OrtApi::SetInterOpNumThreads.

Definition at line 648 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetIntraOpNumThreads ( int  intra_op_num_threads)
inline

Wraps OrtApi::SetIntraOpNumThreads.

Definition at line 642 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetLogId ( const char *  logid)
inline

Wraps OrtApi::SetSessionLogId.

Definition at line 720 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetLogSeverityLevel ( int  level)
inline

Wraps OrtApi::SetSessionLogSeverityLevel.

Definition at line 726 of file onnxruntime_cxx_inline.h.

template<typename T >
SessionOptionsImpl< T > & Ort::detail::SessionOptionsImpl< T >::SetOptimizedModelFilePath ( const ORTCHAR_T *  optimized_model_file)
inline

Wraps OrtApi::SetOptimizedModelFilePath.

Definition at line 666 of file onnxruntime_cxx_inline.h.


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