HDK
|
Base type for all non-tensors, maps, sequences and opaques. More...
#include <data_types.h>
Public Member Functions | |
DeleteFunc | GetDeleteFunc () const override=0 |
virtual CreateFunc | GetCreateFunc () const =0 |
const ONNX_NAMESPACE::TypeProto * | GetTypeProto () const override |
Retrieves an instance of TypeProto for a given MLDataType. More... | |
virtual void | FromDataContainer (const void *data, size_t data_size, OrtValue &output) const |
virtual void | ToDataContainer (const OrtValue &input, size_t data_size, void *data) const |
NonTensorTypeBase (const NonTensorTypeBase &)=delete | |
NonTensorTypeBase & | operator= (const NonTensorTypeBase &)=delete |
Public Member Functions inherited from onnxruntime::DataTypeImpl | |
virtual | ~DataTypeImpl ()=default |
virtual bool | IsCompatible (const ONNX_NAMESPACE::TypeProto &type_proto) const =0 |
this API will be used to check type compatibility at runtime More... | |
size_t | Size () const |
bool | IsTensorType () const |
bool | IsTensorSequenceType () const |
bool | IsSparseTensorType () const |
bool | IsOptionalType () const |
bool | IsNonTensorType () const |
bool | IsPrimitiveDataType () const |
const TensorTypeBase * | AsTensorType () const |
const SequenceTensorTypeBase * | AsSequenceTensorType () const |
const SparseTensorTypeBase * | AsSparseTensorType () const |
const OptionalTypeBase * | AsOptionalType () const |
const NonTensorTypeBase * | AsNonTensorType () const |
const PrimitiveDataTypeBase * | AsPrimitiveDataType () const |
Protected Member Functions | |
NonTensorTypeBase (size_t size) | |
~NonTensorTypeBase () override | |
ONNX_NAMESPACE::TypeProto & | MutableTypeProto () |
bool | IsMapCompatible (const ONNX_NAMESPACE::TypeProto &type_proto) const |
bool | IsSequenceCompatible (const ONNX_NAMESPACE::TypeProto &type_proto) const |
bool | IsOpaqueCompatible (const ONNX_NAMESPACE::TypeProto &type_proto) const |
Protected Member Functions inherited from onnxruntime::DataTypeImpl | |
DataTypeImpl (GeneralType type, size_t size) | |
Base type for all non-tensors, maps, sequences and opaques.
Definition at line 682 of file data_types.h.
|
delete |
|
protected |
|
overrideprotected |
|
virtual |
Reimplemented in onnxruntime::OpaqueType< T, D, N >.
|
pure virtual |
Implemented in onnxruntime::NonTensorType< T >, and onnxruntime::NonTensorType< CPPType >.
|
overridepure virtual |
Implements onnxruntime::DataTypeImpl.
Implemented in onnxruntime::NonTensorType< T >, and onnxruntime::NonTensorType< CPPType >.
|
overridevirtual |
Retrieves an instance of TypeProto for a given MLDataType.
Implements onnxruntime::DataTypeImpl.
|
protected |
|
protected |
|
protected |
|
protected |
|
delete |
|
virtual |
Reimplemented in onnxruntime::OpaqueType< T, D, N >.