metric_inc

Supported Products

For details about Ascend product models, see Ascend Product Models.

Product TypeSupported (Yes/No)
Ascend 950 productsNo
Atlas A3 training products and Atlas A3 inference productsNo
Atlas A2 training products and Atlas A2 inference productsYes
Atlas 200I/500 A2 inference productsNo
Atlas inference productsYes
Atlas training productsNo

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

Function Usage

Records an incremental metric value.

Function Prototype

def metric_inc(self, metric_name, metric_value):

Parameter Description

ParameterInput/OutputDescription
metric_nameInputMetric name.
metric_valueInputIncremental value. A negative value indicates a decrease.

Return Values

Returns the current Profiler object. Chain calls are supported.