aclmdlBundleQueryInfoFromFile

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 the description of the model file if variables need to be dynamically updated during model execution.

Prototype

1
aclError aclmdlBundleQueryInfoFromFile(const char* fileName, aclmdlBundleQueryInfo *queryInfo)

Parameters

Parameter

Input/Output

Description

fileName

Input

Pointer to the model file path, which contains the file name. The user who runs the app must have enough permission to access the directory.

The model file is built using the graph build API. Call aclgrphBundleBuildModel to compile the model, and call aclgrphBundleSaveModel to save the model. For details about the APIs, see aclgrphBundleBuildModel in Graph Development.

queryInfo

Output

Data of the aclmdlBundleQueryInfo type created by calling aclmdlBundleCreateQueryInfo.

Returns

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

Example

For details about the API call sequence and sample code, see Weight update (user-managed memory).