set_init_param
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Sets the initialization parameters of FuncProcessPoint.
Prototype
1 | set_init_param(attr_name, attr_value) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
attr_name |
str |
Initialization parameter name. |
attr_value |
Union[str,List[str],int,List[int],List[List[int]],float,List[float],bool,List[bool],DType,List[DType]] |
Initialization options. |
Returns
None is returned in normal scenarios.
TypeError is returned when the parameter type is incorrect.
Examples
1 2 3 | import dataflow as df pp = df.FuncProcessPoint(...) pp0.set_init_param("out_type", df.DT_INT32) # Set it based on the actual UDF implementation. |
Constraints
None
Parent topic: dataflow.FuncProcessPoint