|
HDK
|
PrimitiveDataTypeBase Base class for primitive Tensor contained types. More...
#include <data_types.h>
Inheritance diagram for onnxruntime::PrimitiveDataTypeBase: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 |
| int32_t | GetNumSubElems () const |
| bool | HasSubElems () 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, int32_t num_sub_elems) | |
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. This class also stores the number of subelements per size units. Example: For int4, the size unit is 1 byte and the number of subelements is 2.
Definition at line 926 of file data_types.h.
|
inlineprotected |
Definition at line 949 of file data_types.h.
|
inline |
Definition at line 936 of file data_types.h.
|
inline |
Definition at line 940 of file data_types.h.
|
inlinefinalvirtual |
Retrieves an instance of TypeProto for a given MLDataType.
Implements onnxruntime::DataTypeImpl.
Definition at line 932 of file data_types.h.
|
inline |
Definition at line 944 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 928 of file data_types.h.