跳到主要内容

GetInputFormat

GetDynamicType

函数功能

用于获得数据动态类型,包括静态BatchSize,动态BatchSize以及ImageSize(分辨率)。

函数原型

DynamicType GetDynamicType() const;

返回参数说明

数据结构说明
DynamicType具体请参考DynamicType

父主题: ModelInferenceProcessor

GetInputDataType

函数功能

用于获得输入数据的类型。

函数原型

std::vector<TensorDataType> GetInputDataType() const;

返回参数说明

数据结构说明
std::vector具体请参考TensorDataType

父主题: ModelInferenceProcessor

GetOutputDataType

函数功能

用于获得输出数据的类型。

函数原型

std::vector<TensorDataType> GetOutputDataType() const;

返回参数说明

数据结构说明
std::vector具体请参考TensorDataType

父主题: ModelInferenceProcessor

GetInputFormat

函数功能

用于获得输入数据的格式。

函数原型

std::vector<size_t> GetinputFormat() const;

父主题: ModelInferenceProcessor

GetOutputFormat

函数功能

用于获得输出数据的格式。

函数原型

std::vector<size_t> GetOutputFormat() const;

父主题: ModelInferenceProcessor

GetDynamicImageSizes

函数功能

获取动态分辨率。

函数原型

const std::vector<ImageSize>& GetDynamicImageSizes() const;

返回参数说明

数据结构说明
ImageSize具体请参考ImageSize

父主题: ModelInferenceProcessor

GetInputShape

函数功能

获得输入张量的形状。

函数原型

std::vector<std::vector<int64_t>> GetInputShape() const;

父主题: ModelInferenceProcessor

在线提单