HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::TensorTypeAndShapeInfo Struct Reference

Wrapper around ::OrtTensorTypeAndShapeInfo. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::TensorTypeAndShapeInfo:

Public Member Functions

 TensorTypeAndShapeInfo (std::nullptr_t)
 Create an empty TensorTypeAndShapeInfo object, must be assigned a valid one to be used. More...
 
 TensorTypeAndShapeInfo (OrtTensorTypeAndShapeInfo *p)
 Used for interop with the C API. More...
 
ConstTensorTypeAndShapeInfo GetConst () const
 
- Public Member Functions inherited from Ort::detail::TensorTypeAndShapeInfoImpl< OrtTensorTypeAndShapeInfo >
ONNXTensorElementDataType GetElementType () const
 Wraps OrtApi::GetTensorElementType. More...
 
size_t GetElementCount () const
 Wraps OrtApi::GetTensorShapeElementCount. More...
 
size_t GetDimensionsCount () const
 Wraps OrtApi::GetDimensionsCount. More...
 
void GetDimensions (int64_t *values, size_t values_count) const
 Wraps OrtApi::GetDimensions. More...
 
void GetSymbolicDimensions (const char **values, size_t values_count) const
 Wraps OrtApi::GetSymbolicDimensions. More...
 
std::vector< int64_t > GetShape () const
 Uses GetDimensionsCount & GetDimensions to return a std::vector of the shape. More...
 
- Public Member Functions inherited from Ort::detail::Base< OrtTensorTypeAndShapeInfo >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
 ~Base ()
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More...
 

Additional Inherited Members

- Public Types inherited from Ort::detail::TensorTypeAndShapeInfoImpl< OrtTensorTypeAndShapeInfo >
using B = Base< OrtTensorTypeAndShapeInfo >
 
- Public Types inherited from Ort::detail::Base< OrtTensorTypeAndShapeInfo >
using contained_type = OrtTensorTypeAndShapeInfo
 
- Protected Attributes inherited from Ort::detail::Base< OrtTensorTypeAndShapeInfo >
contained_typep_
 

Detailed Description

Wrapper around ::OrtTensorTypeAndShapeInfo.

Definition at line 855 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::TensorTypeAndShapeInfo::TensorTypeAndShapeInfo ( std::nullptr_t  )
inlineexplicit

Create an empty TensorTypeAndShapeInfo object, must be assigned a valid one to be used.

Definition at line 856 of file onnxruntime_cxx_api.h.

Ort::TensorTypeAndShapeInfo::TensorTypeAndShapeInfo ( OrtTensorTypeAndShapeInfo *  p)
inlineexplicit

Used for interop with the C API.

Definition at line 857 of file onnxruntime_cxx_api.h.

Member Function Documentation

ConstTensorTypeAndShapeInfo Ort::TensorTypeAndShapeInfo::GetConst ( ) const
inline

Definition at line 858 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following file: