HDK
|
Tensor type. This type does not have a C++ type associated with it at registration time except the element type. One of the types mentioned above at IsTensorContainedType<> list is acceptable. More...
#include <data_types.h>
Public Member Functions | |
MLDataType | GetElementType () const override |
Public Member Functions inherited from onnxruntime::TensorTypeBase | |
bool | IsCompatible (const ONNX_NAMESPACE::TypeProto &type_proto) const override |
DeleteFunc | GetDeleteFunc () const override |
const ONNX_NAMESPACE::TypeProto * | GetTypeProto () const override |
Retrieves an instance of TypeProto for a given MLDataType. More... | |
ORT_DISALLOW_COPY_ASSIGNMENT_AND_MOVE (TensorTypeBase) | |
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::TensorTypeBase | |
ONNX_NAMESPACE::TypeProto & | MutableTypeProto () |
TensorTypeBase () | |
~TensorTypeBase () override | |
Protected Member Functions inherited from onnxruntime::DataTypeImpl | |
DataTypeImpl (GeneralType type, size_t size) | |
Tensor type. This type does not have a C++ type associated with it at registration time except the element type. One of the types mentioned above at IsTensorContainedType<> list is acceptable.
Usage: ORT_REGISTER_TENSOR(ELEMENT_TYPE) Currently all of the Tensors irrespective of the dimensions are mapped to Tensor<type> type. IsCompatible() currently ignores shape.
Definition at line 475 of file data_types.h.
|
inlineoverridevirtual |
Tensors only can contain basic data types that have been previously registered with ONNXRuntime
Reimplemented from onnxruntime::TensorTypeBase.
Definition at line 484 of file data_types.h.
|
static |