aclmdlGetDesc

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Obtains model description based on the model ID.

Prototype

1
aclError aclmdlGetDesc(aclmdlDesc *modelDesc, uint32_t modelId)

Parameters

Parameter

Input/Output

Description

modelDesc

Output

Pointer to data of the aclmdlDesc type.

Call aclmdlCreateDesc to create data of the aclmdlDesc type in advance.

modelId

Input

Model ID.

A successful aclmdlLoadFromFile, aclmdlLoadFromMem, aclmdlLoadFromFileWithMem, or aclmdlLoadFromMemWithMem call returns a model ID.

Returns

0 on success; else, failure. For details, see aclError.