Function: get_output_data_type

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 output data type of a model based on the model description.

Prototype

  • C Prototype
    1
    aclDataType aclmdlGetOutputDataType(const aclmdlDesc *modelDesc, size_t index)
    
  • Python Function
    1
    data_type = acl.mdl.get_output_data_type(model_desc, index)
    

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.

index

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

Returns

Return Value

Description

data_type

Int, data type of the specified output. For details, see aclDataType.