運算子 ExpandToParallel

Operator Library: Base

此運算子將輸入鏈路 I(並行度為 1)擴展至輸出鏈路 O 的任意並行度。 輸入值會被複製到每個並行流中。 在輸出鏈路上設定新的並行度。

所執行的運算可描述為現有運算子的組合 BRANCH 與 MergeParallel的組合:

在此範例中,將一個並行度為 1 的輸入連結複製為並行度為 4 的連結。

I/O Properties

Property Value
Operator Type O
Input Link I,資料輸入
Output Link O,資料輸出

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [1, 64]1 當我
Arithmetic {無符號、有符號} 當我
Parallelism 1 任何
Kernel Columns 任何 當我
Kernel Rows 任何 當我
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} 當我
Color Format 任何 當我
Color Flavor 任何 當我
Max. Img Width 任何 汽車2
Max. Img Height 任何 當我

1

輸入位元寬度的範圍為:

  • 對於無符號值:[1, 64]
  • 對於帶符號的輸入:[2, 64]
  • 對於無符號色彩輸入:[3, 63]
  • 對於帶符號的色彩輸入:[6, 63]

2

輸出影像的最大寬度取決於輸入影像的最大寬度以及輸出並行度 :

Parameters

無

Examples of Use

以下範例示範了如何使用 ExpandToParallel 運算子: