ONNX Runtime
Loading...
Searching...
No Matches
Ort::ThreadingOptions Struct Reference

The ThreadingOptions. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::ThreadingOptions:
Ort::detail::Base< OrtThreadingOptions >

Public Member Functions

 ThreadingOptions ()
 Wraps OrtApi::CreateThreadingOptions.
 
ThreadingOptionsSetGlobalIntraOpNumThreads (int intra_op_num_threads)
 Wraps OrtApi::SetGlobalIntraOpNumThreads.
 
ThreadingOptionsSetGlobalInterOpNumThreads (int inter_op_num_threads)
 Wraps OrtApi::SetGlobalInterOpNumThreads.
 
ThreadingOptionsSetGlobalSpinControl (int allow_spinning)
 Wraps OrtApi::SetGlobalSpinControl.
 
ThreadingOptionsSetGlobalDenormalAsZero ()
 Wraps OrtApi::SetGlobalDenormalAsZero.
 
ThreadingOptionsSetGlobalCustomCreateThreadFn (OrtCustomCreateThreadFn ort_custom_create_thread_fn)
 Wraps OrtApi::SetGlobalCustomCreateThreadFn.
 
ThreadingOptionsSetGlobalCustomThreadCreationOptions (void *ort_custom_thread_creation_options)
 Wraps OrtApi::SetGlobalCustomThreadCreationOptions.
 
ThreadingOptionsSetGlobalCustomJoinThreadFn (OrtCustomJoinThreadFn ort_custom_join_thread_fn)
 Wraps OrtApi::SetGlobalCustomJoinThreadFn.
 
- Public Member Functions inherited from Ort::detail::Base< OrtThreadingOptions >
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.
 

Additional Inherited Members

- Public Types inherited from Ort::detail::Base< OrtThreadingOptions >
using contained_type = OrtThreadingOptions
 
- Protected Attributes inherited from Ort::detail::Base< OrtThreadingOptions >
contained_typep_
 

Detailed Description

The ThreadingOptions.

The ThreadingOptions used for set global threadpools' options of The Env.

Constructor & Destructor Documentation

◆ ThreadingOptions()

Ort::ThreadingOptions::ThreadingOptions ( )

Member Function Documentation

◆ SetGlobalCustomCreateThreadFn()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalCustomCreateThreadFn ( OrtCustomCreateThreadFn  ort_custom_create_thread_fn)

◆ SetGlobalCustomJoinThreadFn()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalCustomJoinThreadFn ( OrtCustomJoinThreadFn  ort_custom_join_thread_fn)

◆ SetGlobalCustomThreadCreationOptions()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalCustomThreadCreationOptions ( void *  ort_custom_thread_creation_options)

◆ SetGlobalDenormalAsZero()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalDenormalAsZero ( )

◆ SetGlobalInterOpNumThreads()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalInterOpNumThreads ( int  inter_op_num_threads)

◆ SetGlobalIntraOpNumThreads()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalIntraOpNumThreads ( int  intra_op_num_threads)

◆ SetGlobalSpinControl()

ThreadingOptions & Ort::ThreadingOptions::SetGlobalSpinControl ( int  allow_spinning)