set_output
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Sets the tensor of the output with a specified index.
Prototype
1 | set_output(self, index, output: Union[FlowMsg, np.ndarray, fw.FlowMsg], balance_config: BalanceConfig = None) -> int |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Index of the specified output. |
output |
Input |
Message of the specified output. |
balance_config |
Input |
(Optional) Configurations related to balanced distribution. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Exception Handling
None
Constraints
None
Parent topic: Class MetaRunContext