Function: set_aipp_padding_params
|
C Prototype |
aclError aclmdlSetAIPPPaddingParams(aclmdlAIPP *aippParmsSet, int8_t paddingSwitch,int32_t paddingSizeTop, int32_t paddingSizeBottom,int32_t paddingSizeLeft, int32_t paddingSizeRight,uint64_t batchIndex) |
|---|---|
|
Python Function |
ret = acl.mdl.set_aipp_padding_params(aipp_parms_set, padding_switch, padding_size_top, padding_size_bottom, padding_size_left, padding_size_right, batch_index) |
|
Function Usage |
|
|
Input Description |
aipp_parms_set: int, pointer address of the dynamic AIPP configuration object. The aclmdlAIPP data must be created by calling acl.mdl.create_aipp in advance. padding_switch: int, whether to perform padding on the image. Values:
padding_size_top: int, top padding size. Value range: [0, 32]. padding_size_bottom: int, bottom padding size. Value range: [0, 32]. padding_size_left: int, left padding size. Value range: [0, 32]. padding_size_right: int, right padding size. Value range: [0, 32]. batch_index: int, index of batch for image padding. The default value is 0. The value range is [0, batch_size). batch_size is set when acl.mdl.create_aipp is called to create data of the aclmdlAIPP type. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
The padded width must be less than or equal to 1080 pixels. |