![]() |
ONNX Runtime
|
Move-only owner for the EPContext callback configuration used by plugin EPs. More...
#include <onnxruntime_cxx_api.h>
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_ |
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.
|
inlineexplicitnoexcept |
|
explicit |
|
explicit |
| void Ort::EpContextConfig::GetReadFunc | ( | OrtReadNamedBufferFunc & | read_func, |
| void *& | state | ||
| ) | const |
| void Ort::EpContextConfig::GetWriteFunc | ( | OrtWriteNamedBufferFunc & | write_func, |
| void *& | state | ||
| ) | const |