get_results
Applicability
Product |
Supported (√/x) |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
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, a list of LLMStatusCode is returned, which corresponds to the transmission result of each 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, the TypeError or ValueError exception is reported.
Restrictions
None