HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OrtValue Struct Reference

#include <ort_value.h>

Public Member Functions

 OrtValue ()
 
 ~OrtValue ()=default
 
 OrtValue (void *pData, onnxruntime::MLDataType type, onnxruntime::DeleteFunc deleter)
 
void Init (void *pData, onnxruntime::MLDataType type, onnxruntime::DeleteFunc deleter)
 
void Init (void *pData, onnxruntime::MLDataType type, const std::function< void(void *)> &deleter)
 
bool IsAllocated () const
 
template<typename T >
const TGet () const
 
template<typename T >
TGetMutable ()
 
bool IsTensor () const noexcept
 
bool IsTensorSequence () const noexcept
 
bool IsSparseTensor () const
 
onnxruntime::MLDataType Type () const
 

Detailed Description

Represents both tensors and non-tensors.

Definition at line 26 of file ort_value.h.

Constructor & Destructor Documentation

OrtValue::OrtValue ( )
inline

Definition at line 28 of file ort_value.h.

OrtValue::~OrtValue ( )
default
OrtValue::OrtValue ( void pData,
onnxruntime::MLDataType  type,
onnxruntime::DeleteFunc  deleter 
)
inline

Definition at line 31 of file ort_value.h.

Member Function Documentation

template<typename T >
const T& OrtValue::Get ( ) const
inline

Definition at line 50 of file ort_value.h.

template<typename T >
T* OrtValue::GetMutable ( )
inline

Definition at line 57 of file ort_value.h.

void OrtValue::Init ( void pData,
onnxruntime::MLDataType  type,
onnxruntime::DeleteFunc  deleter 
)
inline

Definition at line 35 of file ort_value.h.

void OrtValue::Init ( void pData,
onnxruntime::MLDataType  type,
const std::function< void(void *)> &  deleter 
)
inline

Definition at line 40 of file ort_value.h.

bool OrtValue::IsAllocated ( ) const
inline

Definition at line 45 of file ort_value.h.

bool OrtValue::IsSparseTensor ( ) const
inline

Definition at line 70 of file ort_value.h.

bool OrtValue::IsTensor ( ) const
inlinenoexcept

Definition at line 62 of file ort_value.h.

bool OrtValue::IsTensorSequence ( ) const
inlinenoexcept

Definition at line 66 of file ort_value.h.

onnxruntime::MLDataType OrtValue::Type ( ) const
inline

Definition at line 78 of file ort_value.h.


The documentation for this struct was generated from the following file: