get_results

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

No

Atlas A3 training product/Atlas A3 inference product

Yes

Atlas A2 training product/Atlas A2 inference product

Yes

Atlas 200I/500 A2 inference product

No

Atlas inference product

No

Atlas training product

No

Note: For the Atlas A2 training product/Atlas A2 inference product, 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 execution result of each TransferConfig instance.

Prototype

1
get_results(timeout_in_millis: Optional[int] = None) -> List[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
rets = cache_task.get_results()

Returns

In normal cases, an LLMStatusCode list is returned, where each element corresponds to the transmission result of a TransferConfig instance.

If a transmission has not been initiated for the layer corresponding to a TransferConfig instance, the return value is None.

If the input data type is incorrect, a TypeError or ValueError is thrown.

Constraints

None