Wrapper around OrtTensorTypeAndShapeInfo.
More...
#include <onnxruntime_cxx_api.h>
Inherits Ort::Base< OrtTensorTypeAndShapeInfo >.
◆ TensorTypeAndShapeInfo() [1/2]
Ort::TensorTypeAndShapeInfo::TensorTypeAndShapeInfo |
( |
std::nullptr_t |
| ) |
|
|
inlineexplicit |
◆ TensorTypeAndShapeInfo() [2/2]
Used for interop with the C API.
◆ 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()
◆ 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 |