OnnxRuntime
Loading...
Searching...
No Matches
Ort::detail::SessionOptionsImpl< T > Struct Template Reference

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::detail::SessionOptionsImpl< T >:
Ort::detail::ConstSessionOptionsImpl< T > Ort::detail::Base< 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.
 
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

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

Member Typedef Documentation

◆ B [1/2]

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

◆ B [2/2]

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

Member Function Documentation

◆ Add()

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

◆ AddConfigEntry()

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

◆ AddExternalInitializers()

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

◆ AddInitializer()

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

◆ AppendExecutionProvider()

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

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

◆ AppendExecutionProvider_CANN()

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

◆ AppendExecutionProvider_CUDA()

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

◆ AppendExecutionProvider_CUDA_V2()

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

◆ AppendExecutionProvider_Dnnl()

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

◆ AppendExecutionProvider_MIGraphX()

◆ AppendExecutionProvider_OpenVINO()

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

◆ AppendExecutionProvider_ROCM()

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

◆ AppendExecutionProvider_TensorRT()

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

◆ AppendExecutionProvider_TensorRT_V2()

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

◆ DisableCpuMemArena()

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

◆ DisableMemPattern()

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

◆ DisablePerSessionThreads()

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

◆ DisableProfiling()

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

◆ EnableCpuMemArena()

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

◆ EnableMemPattern()

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

◆ EnableOrtCustomOps()

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

◆ EnableProfiling()

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

◆ RegisterCustomOpsLibrary()

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

◆ RegisterCustomOpsUsingFunction()

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

◆ SetCustomCreateThreadFn()

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

◆ SetCustomJoinThreadFn()

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

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.

◆ SetCustomThreadCreationOptions()

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

◆ SetExecutionMode()

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

◆ SetGraphOptimizationLevel()

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

◆ SetInterOpNumThreads()

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

◆ SetIntraOpNumThreads()

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

◆ SetLogId()

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

◆ SetLogSeverityLevel()

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

◆ SetOptimizedModelFilePath()

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