HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::NonTensorTypeConverter< T > Struct Template Reference

Provide a specialization for your C++ Non-tensor type so your implementation FromDataTypeContainer/ToDataTypeContainer functions correctly. Otherwise you get a default implementation which may not be what you need/want. More...

#include <data_types.h>

Static Public Member Functions

static void FromContainer (MLDataType, const void *, size_t, OrtValue &)
 
static void ToContainer (const OrtValue &, size_t, void *)
 

Detailed Description

template<class T>
struct onnxruntime::NonTensorTypeConverter< T >

Provide a specialization for your C++ Non-tensor type so your implementation FromDataTypeContainer/ToDataTypeContainer functions correctly. Otherwise you get a default implementation which may not be what you need/want.

This class is used to create OrtValue, fetch data from OrtValue via C/C++ APIs

Definition at line 634 of file data_types.h.

Member Function Documentation

template<class T >
static void onnxruntime::NonTensorTypeConverter< T >::FromContainer ( MLDataType  ,
const void ,
size_t  ,
OrtValue  
)
inlinestatic

Definition at line 635 of file data_types.h.

template<class T >
static void onnxruntime::NonTensorTypeConverter< T >::ToContainer ( const OrtValue ,
size_t  ,
void  
)
inlinestatic

Definition at line 638 of file data_types.h.


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