synchronize

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Note: For Atlas A2 training products/Atlas A2 inference products, only the Atlas 800I A2 inference server and A200I A2 Box heterogeneous subrack are supported.

Function Description

Waits until the transmission at all layers is complete and obtains the overall execution result.

Prototype

1
synchronize(timeout_in_millis: Optional[int] = None) -> LLMStatusCode

Parameters

Parameter

Data Type

Description

timeout_in_millis

Optional[int]

Waiting timeout interval, in milliseconds. The default value is None, indicating that no timeout occurs.

Example

1
ret = cache_task.synchronize()

Returns

In normal cases, an LLMStatusCode is returned.

If the input data type is incorrect, the TypeError or ValueError exception is reported.

Constraints

None