Function: get_output_format

Applicable Products

Product

Supported (√/x)

Ascend 950PR / Ascend 950DT

√

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

Prototype

  • C Prototype
    1
    aclFormat aclmdlGetOutputFormat(const aclmdlDesc *modelDesc, size_t index)
    
  • Python Function
    1
    format_info = acl.mdl.get_output_format(model_desc, index)
    

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.

index

Int, sequence number of the input to obtain, indexed starting at 0

Return Value Description

Return Value

Description

format_info

Int, format of the specified output. For details, see aclFormat.