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

Move-only owner for the EPContext callback configuration used by plugin EPs. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::EpContextConfig:
Ort::detail::Base< OrtEpContextConfig >

Public Types

using Base = detail::Base< OrtEpContextConfig >
 
- Public Types inherited from Ort::detail::Base< OrtEpContextConfig >
using contained_type = OrtEpContextConfig
 

Public Member Functions

 EpContextConfig (std::nullptr_t) noexcept
 
 EpContextConfig (const SessionOptions &session_options)
 Wraps OrtEpApi::SessionOptionsGetEpContextConfig.
 
 EpContextConfig (ConstSessionOptions session_options)
 Wraps OrtEpApi::SessionOptionsGetEpContextConfig.
 
void GetReadFunc (OrtReadNamedBufferFunc &read_func, void *&state) const
 Wraps OrtEpApi::EpContextConfigGetEpContextDataReadFunc.
 
void GetWriteFunc (OrtWriteNamedBufferFunc &write_func, void *&state) const
 Wraps OrtEpApi::EpContextConfigGetEpContextDataWriteFunc.
 
- Public Member Functions inherited from Ort::detail::Base< OrtEpContextConfig >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
 ~Base ()
 
Base & operator= (const Base &)=delete
 
Base & operator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
constexpr contained_type & operator* () const noexcept
 
contained_type * release ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< OrtEpContextConfig >
contained_type * p_
 

Detailed Description

Move-only owner for the EPContext callback configuration used by plugin EPs.

Construct during OrtEpFactory::CreateEp from the provided session options, retain for the EP lifetime, and query the application callbacks from Compile. The wrapper owns the OrtEpContextConfig handle, not the application state.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ EpContextConfig() [1/3]

Ort::EpContextConfig::EpContextConfig ( std::nullptr_t  )
inlineexplicitnoexcept

◆ EpContextConfig() [2/3]

Ort::EpContextConfig::EpContextConfig ( const SessionOptions &  session_options)
explicit

◆ EpContextConfig() [3/3]

Ort::EpContextConfig::EpContextConfig ( ConstSessionOptions  session_options)
explicit

Member Function Documentation

◆ GetReadFunc()

void Ort::EpContextConfig::GetReadFunc ( OrtReadNamedBufferFunc &  read_func,
void *&  state 
) const

◆ GetWriteFunc()

void Ort::EpContextConfig::GetWriteFunc ( OrtWriteNamedBufferFunc &  write_func,
void *&  state 
) const