aclmdlRICaptureEnd

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

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Ends the capture action on a stream and obtains the running instance of the model that is used to temporarily store the captured tasks.

This API must be used together with other APIs to capture tasks delivered to a stream and temporarily store the tasks in the internally created model for subsequent task execution. This reduces the task delivery overhead on the host. For details about the process of using this API together with other APIs, see the description of aclmdlRICaptureBegin.

In the aclmdlRICaptureBegin API, if mode is set to a value other than ACL_MODEL_RI_CAPTURE_MODE_RELAXED, aclmdlRICaptureEnd and aclmdlRICaptureBegin must be in the same thread.

Prototype

aclError aclmdlRICaptureEnd(aclrtStream stream, aclmdlRI *modelRI)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream.

modelRI

Output

Running instance of the model that is used to temporarily store the captured tasks.

Returns

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