SetStatus

Applicable Products

For details about the mapping between Ascend AI Processors and Ascend products, see Ascend Product Overview.

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

√

Atlas training products

x

For the Atlas A2 training products/Atlas A2 inference products, only Atlas 800I A2 inference products are supported.

For the Atlas inference products, only the Atlas 300I Duo inference card and Atlas 800 inference server (model 3000) are supported.

Function

Sets the Span status.

Prototype

1
Span& SetStatus(const bool isSuccess, const std::string& msg)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

isSuccess

Input

Service status, which can be true or false.

msg

Input

Status information

Returns

Returns a reference to the Span class object, which supports chained calls.