IsEnable

Applicable Products

For details about the mapping between 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

Determines whether to enable profiling. If the input parameter level is lower than the configured level, true is returned.

Prototype

1
inline bool IsEnable(Level msgLevel = level)

Parameter Description

Table 1 Parameters

Parameter

Input/Output

Description

msgLevel

Input

Profiling level. For details, see profiler_level in 1.

Returns

true means that profiling is enabled, and false means that profiling is disabled.