HDK
|
PrimitiveDataTypeBase Base class for primitive Tensor contained types. More...
#include <data_types.h>
Public Member Functions | |
bool | IsCompatible (const ONNX_NAMESPACE::TypeProto &) const override |
this API will be used to check type compatibility at runtime More... | |
const ONNX_NAMESPACE::TypeProto * | GetTypeProto () const final |
Retrieves an instance of TypeProto for a given MLDataType. More... | |
int32_t | GetDataType () const |
Public Member Functions inherited from onnxruntime::DataTypeImpl | |
virtual | ~DataTypeImpl ()=default |
size_t | Size () const |
virtual DeleteFunc | GetDeleteFunc () const =0 |
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 | |
PrimitiveDataTypeBase (size_t size, int32_t data_type) | |
Protected Member Functions inherited from onnxruntime::DataTypeImpl | |
DataTypeImpl (GeneralType type, size_t size) | |
PrimitiveDataTypeBase Base class for primitive Tensor contained types.
This class contains an integer constant that can be used for input data type dispatching
Definition at line 923 of file data_types.h.
|
inlineprotected |
Definition at line 938 of file data_types.h.
|
inline |
Definition at line 933 of file data_types.h.
|
inlinefinalvirtual |
Retrieves an instance of TypeProto for a given MLDataType.
Implements onnxruntime::DataTypeImpl.
Definition at line 929 of file data_types.h.
|
inlineoverridevirtual |
this API will be used to check type compatibility at runtime
type_proto | a TypeProto instance that is constructed for a specific type will be checked against a TypeProto instance contained within a corresponding MLDataType instance. |
Implements onnxruntime::DataTypeImpl.
Definition at line 925 of file data_types.h.