Function: get_input_format

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 input format of a model based on the model description.

Prototype

  • C Prototype

    aclFormat aclmdlGetInputFormat(const aclmdlDesc *modelDesc, size_t index)
    
  • Python Function

    format_info = acl.mdl.get_input_format(model_desc, index)
    

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.
index Int, sequence number of the input whose format is to be obtained, starting at 0.

Return Values

Return Value Description
format_info Int, format of the specified input. For details, see aclFormat.