SetInputsAlignAttrs
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Sets the attribute of input alignment in FlowGraph.
Prototype
1 | FlowGraph &SetInputsAlignAttrs(uint32_t align_max_cache_num, int32_t align_timeout, bool dropout_when_not_align = false) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
align_max_cache_num |
Input |
Maximum number of caches for data alignment. The default value is 0, indicating that data alignment is disabled. A value greater than 0 indicates that data alignment is enabled. The maximum value is 1024. Each cache represents a set of inputs. |
align_timeout |
Input |
Wait timeout for aligning each group of data, in ms. The value -1 means no timeout limit. The value must be greater than 0 and less than or equal to 600 × 1000 ms (10 minutes). |
dropout_when_not_align |
Input |
Whether to drop the unaligned data after a timeout occurs or the maximum number of caches is exceeded.
The default value is false. |
Returns
FlowGraph graph for which the alignment attribute is set
Exception Handling
None
Constraints
None