Function: get_num_outputs

Applicability

Product

Supported

Atlas 350 Accelerator Card

√

Atlas A3 training product/Atlas A3 inference product

√

Atlas A2 training product/Atlas A2 inference product

√

Atlas training product

√

Atlas inference product

√

Atlas 200I/500 A2 inference product

√

Function Usage

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

Prototype

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

Parameters

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.

Returns

Return Value

Description

size

Int, number of model outputs.