HDK
|
PrimitiveDataType Typed specialization for primitive types. Concrete instances of this class are used by Tensor. More...
#include <data_types.h>
Public Member Functions | |
DeleteFunc | GetDeleteFunc () const override |
Public Member Functions inherited from onnxruntime::PrimitiveDataTypeBase | |
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 |
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 |
Additional Inherited Members | |
Public Types inherited from onnxruntime::DataTypeImpl | |
enum | GeneralType { GeneralType::kInvalid = 0, GeneralType::kNonTensor = 1, GeneralType::kTensor = 2, GeneralType::kTensorSequence = 3, GeneralType::kSparseTensor = 4, GeneralType::kOptional = 5, GeneralType::kPrimitive = 6 } |
Public Attributes inherited from onnxruntime::DataTypeImpl | |
const GeneralType | type_ |
const size_t | size_ |
Protected Member Functions inherited from onnxruntime::PrimitiveDataTypeBase | |
PrimitiveDataTypeBase (size_t size, int32_t data_type) | |
Protected Member Functions inherited from onnxruntime::DataTypeImpl | |
DataTypeImpl (GeneralType type, size_t size) | |
PrimitiveDataType Typed specialization for primitive types. Concrete instances of this class are used by Tensor.
T | - primitive data type |
Definition at line 954 of file data_types.h.
|
inlineoverridevirtual |
Implements onnxruntime::DataTypeImpl.
Definition at line 963 of file data_types.h.
|
static |