OnnxRuntime
|
Options object used when creating a new Session object. More...
#include <onnxruntime_cxx_api.h>
Inherits Ort::Base< OrtSessionOptions >.
Additional Inherited Members | |
Public Types inherited from Ort::Base< OrtSessionOptions > | |
using | contained_type = OrtSessionOptions |
Protected Member Functions inherited from Ort::Base< OrtSessionOptions > | |
Base (const Base &)=delete | |
Base (Base &&v) noexcept | |
Base & | operator= (const Base &)=delete |
void | operator= (Base &&v) noexcept |
Protected Attributes inherited from Ort::Base< OrtSessionOptions > | |
OrtSessionOptions * | p_ |
Options object used when creating a new Session object.
Wraps OrtSessionOptions object and methods
|
inlineexplicit |
Create an empty SessionOptions object, must be assigned a valid one to be used.
Ort::SessionOptions::SessionOptions | ( | ) |
Wraps OrtApi::CreateSessionOptions.
|
inlineexplicit |
Used for interop with the C API.
SessionOptions & Ort::SessionOptions::Add | ( | OrtCustomOpDomain * | custom_op_domain | ) |
Wraps OrtApi::AddCustomOpDomain.
SessionOptions & Ort::SessionOptions::AddConfigEntry | ( | const char * | config_key, |
const char * | config_value | ||
) |
SessionOptions & Ort::SessionOptions::AddInitializer | ( | const char * | name, |
const OrtValue * | ort_val | ||
) |
Wraps OrtApi::AddInitializer.
SessionOptions & Ort::SessionOptions::AppendExecutionProvider_CUDA | ( | const OrtCUDAProviderOptions & | provider_options | ) |
SessionOptions & Ort::SessionOptions::AppendExecutionProvider_OpenVINO | ( | const OrtOpenVINOProviderOptions & | provider_options | ) |
SessionOptions & Ort::SessionOptions::AppendExecutionProvider_ROCM | ( | const OrtROCMProviderOptions & | provider_options | ) |
SessionOptions & Ort::SessionOptions::AppendExecutionProvider_TensorRT | ( | const OrtTensorRTProviderOptions & | provider_options | ) |
SessionOptions Ort::SessionOptions::Clone | ( | ) | const |
Creates and returns a copy of this SessionOptions object. Wraps OrtApi::CloneSessionOptions.
SessionOptions & Ort::SessionOptions::DisableCpuMemArena | ( | ) |
Wraps OrtApi::DisableCpuMemArena.
SessionOptions & Ort::SessionOptions::DisableMemPattern | ( | ) |
Wraps OrtApi::DisableMemPattern.
SessionOptions & Ort::SessionOptions::DisablePerSessionThreads | ( | ) |
SessionOptions & Ort::SessionOptions::DisableProfiling | ( | ) |
Wraps OrtApi::DisableProfiling.
SessionOptions & Ort::SessionOptions::EnableCpuMemArena | ( | ) |
Wraps OrtApi::EnableCpuMemArena.
SessionOptions & Ort::SessionOptions::EnableMemPattern | ( | ) |
Wraps OrtApi::EnableMemPattern.
SessionOptions & Ort::SessionOptions::EnableOrtCustomOps | ( | ) |
Wraps OrtApi::EnableOrtCustomOps.
SessionOptions & Ort::SessionOptions::EnableProfiling | ( | const char * | profile_file_prefix | ) |
Wraps OrtApi::EnableProfiling.
SessionOptions & Ort::SessionOptions::SetCustomCreateThreadFn | ( | OrtCustomCreateThreadFn | ort_custom_create_thread_fn | ) |
SessionOptions & Ort::SessionOptions::SetCustomJoinThreadFn | ( | OrtCustomJoinThreadFn | ort_custom_join_thread_fn | ) |
SessionOptions & Ort::SessionOptions::SetCustomThreadCreationOptions | ( | void * | ort_custom_thread_creation_options | ) |
SessionOptions & Ort::SessionOptions::SetExecutionMode | ( | ExecutionMode | execution_mode | ) |
SessionOptions & Ort::SessionOptions::SetGraphOptimizationLevel | ( | GraphOptimizationLevel | graph_optimization_level | ) |
SessionOptions & Ort::SessionOptions::SetInterOpNumThreads | ( | int | inter_op_num_threads | ) |
Wraps OrtApi::SetInterOpNumThreads.
SessionOptions & Ort::SessionOptions::SetIntraOpNumThreads | ( | int | intra_op_num_threads | ) |
Wraps OrtApi::SetIntraOpNumThreads.
SessionOptions & Ort::SessionOptions::SetLogId | ( | const char * | logid | ) |
Wraps OrtApi::SetSessionLogId.
SessionOptions & Ort::SessionOptions::SetLogSeverityLevel | ( | int | level | ) |
SessionOptions & Ort::SessionOptions::SetOptimizedModelFilePath | ( | const char * | optimized_model_file | ) |