Function: get_aipp_data_size

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the memory size required by the dynamic AIPP input data based on batch_size.

Prototype

  • C Prototype
    1
    aclError aclmdlGetAippDataSize(uint64_t batchSize, size_t *size)
    
  • Python Function
    1
    mem_size, ret = acl.mdl.get_aipp_data_size(batch_size)
    

Parameter Description

Parameter

Description

batch_size

Int, batch size of the original model.

Return Value Description

Return Value

Description

mem_size

Int, memory size, in bytes.

ret

Int, error code.