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...
 
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. More...
 
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)
 
SessionOptionsImplAppendExecutionProvider (const std::string &provider_name, const std::unordered_map< std::string, std::string > &provider_options={})
 Wraps OrtApi::SessionOptionsAppendExecutionProvider. Currently supports 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 538 of file onnxruntime_cxx_api.h.

Member Typedef Documentation

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

Definition at line 539 of file onnxruntime_cxx_api.h.

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

Definition at line 527 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 651 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 657 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 675 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 663 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 SNPE and XNNPACK.

Definition at line 736 of file onnxruntime_cxx_inline.h.

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

Definition at line 730 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 694 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 700 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 724 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.

Definition at line 776 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 706 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 712 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 718 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::DisableCpuMemArena.

Definition at line 627 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::DisableMemPattern.

Definition at line 615 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::DisablePerSessionThreads.

Definition at line 669 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::DisableProfiling.

Definition at line 597 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::EnableCpuMemArena.

Definition at line 621 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::EnableMemPattern.

Definition at line 609 of file onnxruntime_cxx_inline.h.

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

Wraps OrtApi::EnableOrtCustomOps.

Definition at line 603 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 591 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 782 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 795 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 758 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 770 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 764 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 633 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 579 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 573 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 567 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 639 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 645 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 585 of file onnxruntime_cxx_inline.h.


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