metric_inc

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 Description

Records the increment of a metric class.

Prototype

1
def metric_inc(self, metric_name, metric_value)

Parameters

Parameter

Input/Output

Description

metric_name

Input

Metric name.

metric_value

Input

Increment. A negative value indicates a decrease.

Returns

The profiler returns the current object. Chain calls are supported.