Function: get_num_inputs

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Obtains the number of model inputs based on data of the aclmdlDesc type.

Prototype

  • C Prototype

    size_t aclmdlGetNumInputs(aclmdlDesc *modelDesc)
    
  • Python Function

    size = acl.mdl.get_num_inputs(model_desc)
    

Parameters

Parameter Description
model_desc Int, pointer address of the data of the aclmdlDesc type. Call the acl.mdl.create_desc API to create data of the aclmdlDesc type in advance.

Return Values

Return Value Description
size Int, number of model inputs.