aclmdlRIExecuteAsync

Note: This API is for trial use and may be changed in later versions. It is not available in commercial products.

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

Description

Executes the model. This API is asynchronous.

Prototype

1
aclError aclmdlRIExecuteAsync(aclmdlRI modelRI, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

modelRI

Input

Model running instance. For details about the type definition, see aclmdlRI.

Obtain a modelRI in either of the following ways:

stream

Input

Stream for executing the model inference task. For details about the type definition, see aclrtStream.

Returns

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

API Call Example

For the API call example, see Single-Stream Capture.