attr

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

Adds an attribute and returns the current object. Chain calls are supported. The tool parses the attribute into trace data and shows it in args.

Prototype

1
def attr(self, key, value)

Parameters

Parameter

Input/Output

Description

key

Input

Attribute name.

value

Input

Attribute value.

Returns

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