aclrtSetLabel

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

Sets a label on a stream.

Prototype

1
aclError aclrtSetLabel(aclrtLabel label, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

label

Input

Label. For details about the type definition, see aclrtLabel.

Use a label created by calling the aclrtCreateLabel API as the input.

stream

Input

Stream on which a label needs to be set. For details about the type definition, see aclrtStream.

Only a stream bound to a model running instance by calling the aclmdlRIBindStream API is supported.

Returns

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