Function: get_num_inputs

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 number of model inputs based on data of the aclmdlDesc type.

Prototype

  • C Prototype
    1
    size_t aclmdlGetNumInputs(aclmdlDesc *modelDesc)
    
  • Python Function
    1
    size = acl.mdl.get_num_inputs(model_desc)
    

Parameter Description

Parameter

Description

model_desc

Int, pointer address of the data of the aclmdlDesc type.

Call acl.mdl.create_desc to create data of the aclmdlDesc type in advance.

Return Value Description

Return Value

Description

size

Int, number of model inputs.