__enter__/__exit__

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

Calls the span_start function automatically when the process enters to log its start time. Calls the span_end function automatically when the process exits to log its end time.

Prototype

1
2
def __enter__(self)
def __exit__(self, exc_type, exc_val, exc_tb)

Parameters

None.

Returns

None.