SplitParallel 運算子

Operator Library: Base

此運算子將並行度為 N 的輸入鏈路,分割為 M 條並行度為 N/M 的輸出鏈路。 輸入並行度 (N) 必須能被輸出鏈路數 (M) 整除。 此運算子的反向運算子為「MergeParallel」。

下圖展示了一個輸入並行度為四、輸出鏈路為四的範例。

此範例顯示輸入並行度為四,且有兩條輸出鏈路。

I/O Properties

Property Value
Operator Type O
Input Link I,資料輸入
Output Link O[0, M-1],資料輸出

Supported Link Format

Link Parameter Input Link I 輸出鏈結 O[0, M-1]
Bit Width [1, 64]1 as I
Arithmetic {unsigned, signed} as I
Parallelism any I.Parallelism / M
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format any as I
Color Flavor any as I
Max. Img Width any as I
Max. Img Height any as I

1

輸入 Bit Width 的範圍為 [1, 64]。 對於有號輸入,範圍為 [2, 64]。 對於無號彩色輸入,範圍為 [3, 63],而對於有號彩色,範圍則為 [6, 63]。

Parameters

無

Examples of Use

以下範例展示了 SplitParallel 運算子的使用方式: