OnnxRuntime
Ort::TensorTypeAndShapeInfo Struct Reference

Wrapper around OrtTensorTypeAndShapeInfo. More...

#include <onnxruntime_cxx_api.h>

Inherits Ort::Base< OrtTensorTypeAndShapeInfo >.

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...
 
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::Base< OrtTensorTypeAndShapeInfo >
 Base ()=default
 
 Base (OrtTensorTypeAndShapeInfo *p)
 
 ~Base ()
 
 operator OrtTensorTypeAndShapeInfo * ()
 
 operator const OrtTensorTypeAndShapeInfo * () const
 
OrtTensorTypeAndShapeInforelease ()
 Releases ownership of the contained pointer. More...
 

Additional Inherited Members

- Public Types inherited from Ort::Base< OrtTensorTypeAndShapeInfo >
using contained_type = OrtTensorTypeAndShapeInfo
 
- Protected Member Functions inherited from Ort::Base< OrtTensorTypeAndShapeInfo >
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (const Base &)=delete
 
void operator= (Base &&v) noexcept
 
- Protected Attributes inherited from Ort::Base< OrtTensorTypeAndShapeInfo >
OrtTensorTypeAndShapeInfop_
 

Detailed Description

Wrapper around OrtTensorTypeAndShapeInfo.

Constructor & Destructor Documentation

◆ TensorTypeAndShapeInfo() [1/2]

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

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

◆ TensorTypeAndShapeInfo() [2/2]

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

Used for interop with the C API.

Member Function Documentation

◆ GetDimensions()

void Ort::TensorTypeAndShapeInfo::GetDimensions ( int64_t *  values,
size_t  values_count 
) const

◆ GetDimensionsCount()

size_t Ort::TensorTypeAndShapeInfo::GetDimensionsCount ( ) const

◆ GetElementCount()

size_t Ort::TensorTypeAndShapeInfo::GetElementCount ( ) const

◆ GetElementType()

ONNXTensorElementDataType Ort::TensorTypeAndShapeInfo::GetElementType ( ) const

◆ GetShape()

std::vector< int64_t > Ort::TensorTypeAndShapeInfo::GetShape ( ) const

Uses GetDimensionsCount & GetDimensions to return a std::vector of the shape.

◆ GetSymbolicDimensions()

void Ort::TensorTypeAndShapeInfo::GetSymbolicDimensions ( const char **  values,
size_t  values_count 
) const