函数:get_input_format

C函数原型

aclFormat aclmdlGetInputFormat(const aclmdlDesc *modelDesc, size_t index)

Python函数

format_info = acl.mdl.get_input_format(model_desc, index)

函数功能

根据模型描述信息获取模型中指定输入的Format。

输入说明

model_desc:int,aclmdlDesc类型数据的指针地址。

需提前调用acl.mdl.create_desc接口创建aclmdlDesc类型的数据。

index:int,指定获取第几个输入的大小,“index”值从0开始。

返回值说明

format_info:int,返回指定输入的Format,具体请参见aclFormat

约束说明