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

The TensorRTOptions (V2) More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::TensorRTProviderOptions:
Ort::detail::Base< OrtTensorRTProviderOptionsV2 >

Public Member Functions

 TensorRTProviderOptions (std::nullptr_t)
 
 TensorRTProviderOptions ()
 Wraps OrtApi::CreateTensorRTProviderOptionsV2.
 
void Update (const std::unordered_map< std::string, std::string > &options)
 Wrapper around OrtApi::UpdateTensorRTProviderOptions.
 
void UpdateWithValue (const char *key, void *value)
 Wrapper around OrtApi::GetTensorRTProviderOptionsByName.
 
void * GetOptionByName (const char *name) const
 Wrapper around OrtApi::GetTensorRTProviderOptionsAsString.
 
std::string GetTensorRTProviderOptionsAsString () const
 
- Public Member Functions inherited from Ort::detail::Base< OrtTensorRTProviderOptionsV2 >
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
 
constexpr contained_typeoperator* () 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< OrtTensorRTProviderOptionsV2 >
using contained_type = OrtTensorRTProviderOptionsV2
 
- Protected Attributes inherited from Ort::detail::Base< OrtTensorRTProviderOptionsV2 >
contained_typep_
 

Detailed Description

The TensorRTOptions (V2)

Used to pass options to TRT EP

Constructor & Destructor Documentation

◆ TensorRTProviderOptions() [1/2]

Ort::TensorRTProviderOptions::TensorRTProviderOptions ( std::nullptr_t  )
inline

◆ TensorRTProviderOptions() [2/2]

Ort::TensorRTProviderOptions::TensorRTProviderOptions ( )

Wraps OrtApi::CreateTensorRTProviderOptionsV2.

Wrapper around OrtApi::UpdateTensorRTProviderOptions

Member Function Documentation

◆ GetOptionByName()

void * Ort::TensorRTProviderOptions::GetOptionByName ( const char *  name) const

◆ GetTensorRTProviderOptionsAsString()

std::string Ort::TensorRTProviderOptions::GetTensorRTProviderOptionsAsString ( ) const

◆ Update()

void Ort::TensorRTProviderOptions::Update ( const std::unordered_map< std::string, std::string > &  options)

◆ UpdateWithValue()

void Ort::TensorRTProviderOptions::UpdateWithValue ( const char *  key,
void *  value 
)