OnnxRuntime
Ort::IoBinding Struct Reference

#include <onnxruntime_cxx_api.h>

Inherits Ort::Base< OrtIoBinding >.

Public Member Functions

 IoBinding (Session &session)
 
void BindInput (const char *name, const Value &)
 
void BindOutput (const char *name, const Value &)
 
void BindOutput (const char *name, const MemoryInfo &)
 
std::vector< std::string > GetOutputNames () const
 
std::vector< std::string > GetOutputNames (Allocator &) const
 
std::vector< ValueGetOutputValues () const
 
std::vector< ValueGetOutputValues (Allocator &) const
 
void ClearBoundInputs ()
 
void ClearBoundOutputs ()
 
void SynchronizeInputs ()
 
void SynchronizeOutputs ()
 
- Public Member Functions inherited from Ort::Base< OrtIoBinding >
 Base ()=default
 
 Base (OrtIoBinding *p)
 
 ~Base ()
 
 operator OrtIoBinding * ()
 
 operator const OrtIoBinding * () const
 
OrtIoBindingrelease ()
 Releases ownership of the contained pointer. More...
 

Additional Inherited Members

- Public Types inherited from Ort::Base< OrtIoBinding >
using contained_type = OrtIoBinding
 
- Protected Member Functions inherited from Ort::Base< OrtIoBinding >
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (const Base &)=delete
 
void operator= (Base &&v) noexcept
 
- Protected Attributes inherited from Ort::Base< OrtIoBinding >
OrtIoBindingp_
 

Constructor & Destructor Documentation

◆ IoBinding()

Ort::IoBinding::IoBinding ( Session session)
explicit

Member Function Documentation

◆ BindInput()

void Ort::IoBinding::BindInput ( const char *  name,
const Value  
)

◆ BindOutput() [1/2]

void Ort::IoBinding::BindOutput ( const char *  name,
const MemoryInfo  
)

◆ BindOutput() [2/2]

void Ort::IoBinding::BindOutput ( const char *  name,
const Value  
)

◆ ClearBoundInputs()

void Ort::IoBinding::ClearBoundInputs ( )

◆ ClearBoundOutputs()

void Ort::IoBinding::ClearBoundOutputs ( )

◆ GetOutputNames() [1/2]

std::vector< std::string > Ort::IoBinding::GetOutputNames ( ) const

◆ GetOutputNames() [2/2]

std::vector< std::string > Ort::IoBinding::GetOutputNames ( Allocator ) const

◆ GetOutputValues() [1/2]

std::vector< Value > Ort::IoBinding::GetOutputValues ( ) const

◆ GetOutputValues() [2/2]

std::vector< Value > Ort::IoBinding::GetOutputValues ( Allocator ) const

◆ SynchronizeInputs()

void Ort::IoBinding::SynchronizeInputs ( )

◆ SynchronizeOutputs()

void Ort::IoBinding::SynchronizeOutputs ( )