函数:get_aipp_type
产品支持情况
产品 |
是否支持 |
---|---|
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
获取指定模型的指定输入所支持的AIPP类型(动态AIPP或静态AIPP)及动态AIPP输入对应的index值。
函数原型
- C函数原型
1
aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type, size_t *dynamicAttachedDataIndex)
- python函数
1
type, dynamic_attached_data_index, ret = acl.mdl.get_aipp_type(model_id, index)
参数说明
参数名 |
说明 |
---|---|
model_id |
int,指定模型的ID。 可在以下接口成功加载模型后获取到模型ID。 |
index |
int,模型中输入的index。 |
返回值说明
返回值 |
说明 |
---|---|
type |
int,表示指定模型输入的AIPP类型,具体请参见aclmdlInputAippType。 |
dynamic_attached_data_index |
int,返回信息。
|
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: 模型执行