~/bend-docscommunity

kernel_window_pipeline.bend checks

raw source on the hub · import stelliferous@0.0.4.0/kernel_window_pipeline.bend as Kernel_window_pipeline

A convolution over the cells of a batch of images. Every output piece is computed by calls of the window kernel, one call for the positions of one image, each packing the input rows its positions read. A task holds its input pieces and the halo before them (Halo.windows); a call reads its rows from the held piece that holds them all, or from a buffer of them assembled from the pieces that hold its parts.

18 imports
import Base
import ./storage_buffer.bend as Storage
import ./storage_clone.bend as Clone
import ./tensor_move.bend as Move
import ./storage_copy.bend as Copy
import ./kernel_tile.bend as Tile
import ./kernel_gemm.bend as Gemm
import ./kernel_gemm_buffer.bend as GemmBuffer
import ./kernel_window.bend as KernelWindow
import ./kernel_pipeline.bend as Pipeline
import ./kernel_spatial_packing.bend as Packing
import ./math_activation.bend as Activations
import ./tensor.bend as Tensors
import ./tensor_grid.bend as Grid
import ./tensor_pieces.bend as Pieces
import ./tensor_tasks.bend as Tasks
import ./tensor_halo.bend as Halo
import ./traversal_partition.bend as Partition

Types

type Convolution source · line 29 · raw

Data

The image extents of the input and the output, the window, the output channels, the inner extent of the product, the cells of a position in the input and the output, and the activation.

type Call source · line 71 · raw

Data

One call of a kernel: the positions [first, first + count) of an image, whose rows are the band of input rows held from cell base on, written from output position offset on.

type Calling source · line 76 · raw

@-Work:Type -> Type

A task between calls: the pieces it holds, the spare its bands are assembled in and the work of the kernel.

type Parameters source · line 123 · raw

@-Kept:Type -> Type

What a task keeps between its output pieces: the kernel's read-only operands and workspace, and the spare its bands are assembled in.

type Windowed source · line 188 · raw

Data

What a task reads: the convolution and the output grid.

type PackedKept source · line 267 · raw

Type

The weights and bias of a packed task and its two packing workspaces: the planes of a call and the tiles of a block.

type PackedWork source · line 271 · raw

Type

A packed output piece: the kept operands and its output cells.

type PointKept source · line 348 · raw

Type

The pairs of the weights and the bias of a pointwise task.

type PointWork source · line 353 · raw

Type

A pointwise output piece: the kept operands and its products staged as pairs.

Definitions

def plane_of source · line 33 · raw

@convolution:Convolution -> U32

def output_groups_of source · line 37 · raw

@convolution:Convolution -> U32

def image_cells source · line 41 · raw

@convolution:Convolution -> U32

def output_image_cells source · line 45 · raw

@convolution:Convolution -> U32

def activation_of source · line 49 · raw

@convolution:Convolution -> 0xa2af805348d03b11eb853850859654f6/math_activation.Activation

def channels_of source · line 53 · raw

@convolution:Convolution -> U32

def inner_of source · line 57 · raw

@convolution:Convolution -> U32

def band_of source · line 62 · raw

@+convolution:Convolution -> @+first:U32 -> @+count:U32 -> 0xa2af805348d03b11eb853850859654f6/kernel_window.Band

The rows the positions [first, first + count) of an image read.

def images_between source · line 118 · raw

@+plane:U32 -> @+position:U32 -> @+end:U32 -> U32

def height_of source · line 162 · raw

@convolution:Convolution -> U32

def reach_bands source · line 166 · raw

@+convolution:Convolution -> @first_band:0xa2af805348d03b11eb853850859654f6/kernel_window.Band -> @end_band:0xa2af805348d03b11eb853850859654f6/kernel_window.Band -> @+position:U32 -> @+last:U32 -> 0xa2af805348d03b11eb853850859654f6/tensor_tasks.Span

def reach source · line 177 · raw

@+convolution:Convolution -> @+first:U32 -> @+count:U32 -> 0xa2af805348d03b11eb853850859654f6/tensor_tasks.Span

The input cells the output cells [first, first + count) read: from the first row the first position reads to the last row the last one reads.

def clipped_first source · line 192 · raw

@+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+piece:U32 -> @+low:U32 -> U32

The cells of a piece that the task's cells [low, high) cover.

def clipped_count source · line 195 · raw

@+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+piece:U32 -> @+low:U32 -> @+high:U32 -> U32

def task_positions source · line 224 · raw

@+convolution:Convolution -> @+first:U32 -> @+count:U32 -> U32

The output positions of a task's cells [first, first + count).

def reach_of source · line 247 · raw

@+convolution:Convolution -> @+first:U32 -> @+count:U32 -> 0xa2af805348d03b11eb853850859654f6/tensor_tasks.Span

def packed_returned source · line 275 · raw

@kept:0xa2af805348d03b11eb853850859654f6/kernel_pipeline.Kept -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PackedWork)

def stencil_of source · line 279 · raw

@+convolution:Convolution -> @+base:U32 -> @+rows:U32 -> 0xa2af805348d03b11eb853850859654f6/kernel_spatial_packing.Stencil

def packed_call source · line 285 · raw

@+convolution:Convolution -> @+call:Call -> @input:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @work:PackedWork -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PackedWork)

A packed call packs the rows its positions read from the band and multiplies them by the weights.

def packed_begin source · line 293 · raw

@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @kept:PackedKept -> PackedWork

def call_positions source · line 303 · raw

@+convolution:Convolution -> @+positions:U32 -> U32

The workspaces of the largest call of a task of positions positions: a call holds the positions of one image.

def plane_size source · line 307 · raw

@+convolution:Convolution -> @+positions:U32 -> U32

def workspace_size source · line 310 · raw

@+convolution:Convolution -> @+positions:U32 -> U32

def packed_prepare source · line 316 · raw

@+convolution:Convolution -> @+positions:U32 -> @kept:PackedKept -> PackedKept

The task's own workspaces in place of the empty ones it was given, so the tasks allocate in parallel.

def packed_shared source · line 321 · raw

@weights:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>) -> @bias:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>) -> @planes:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile16> -> @tiles:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> Pair(PackedKept, PackedKept)

def packed_share source · line 329 · raw

@kept:PackedKept -> Pair(PackedKept, PackedKept)

Each task owns its copy of the read-only weights and bias.

def pointwise source · line 343 · raw

@convolution:Convolution -> Bool

A 1 x 1 window of stride 1 without padding over an inner extent of whole pairs of groups reads its rows from the input cells, sixteen output channels a block, without packing.

def point_returned source · line 356 · raw

@kept:0xa2af805348d03b11eb853850859654f6/kernel_gemm_buffer.PointKept -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PointWork)

def point_call source · line 362 · raw

@+convolution:Convolution -> @+call:Call -> @input:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @work:PointWork -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PointWork)

Position q of a pointwise call reads its cells from base + (q - first row) * groups.

def point_begin source · line 371 · raw

@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @kept:PointKept -> PointWork

def point_prepare source · line 379 · raw

@+convolution:Convolution -> @+positions:U32 -> @kept:PointKept -> PointKept

def point_shared source · line 382 · raw

@pairs:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile16>, 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile16>) -> @bias:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>) -> Pair(PointKept, PointKept)

def point_share source · line 387 · raw

@kept:PointKept -> Pair(PointKept, PointKept)

def pairs_built source · line 391 · raw

@built:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile16>) -> 0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile16>

Templates

template called_back source · line 79 · raw

@-Work:Type -> @returned:Pair(0xa2af805348d03b11eb853850859654f6/tensor_move.Holding<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, 0xa2af805348d03b11eb853850859654f6/tensor_move.Spare<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>) -> @work:Work -> Calling<Work>

template called source · line 83 · raw

@-Work:Type -> @lent:0xa2af805348d03b11eb853850859654f6/tensor_move.Lent<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @computed:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work) -> Calling<Work>

template call_banded source · line 87 · raw

@-Work:Type -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @+convolution:Convolution -> @+band:0xa2af805348d03b11eb853850859654f6/kernel_window.Band -> @+image:U32 -> @+first:U32 -> @+offset:U32 -> @+count:U32 -> @banded:0xa2af805348d03b11eb853850859654f6/tensor_move.Band<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @work:Work -> Calling<Work>

template call_band source · line 92 · raw

@-Work:Type -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @+convolution:Convolution -> @+band:0xa2af805348d03b11eb853850859654f6/kernel_window.Band -> @+image:U32 -> @+first:U32 -> @+count:U32 -> @+offset:U32 -> @state:Calling<Work> -> Calling<Work>

template call source · line 102 · raw

@-Work:Type -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @+convolution:Convolution -> @+image:U32 -> @+first:U32 -> @+count:U32 -> @+offset:U32 -> @state:Calling<Work> -> Calling<Work>

One call: positions [first, first + count) of an image, written from output position offset on.

template calls source · line 108 · raw

@-Work:Type -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @remaining:Nat -> @+convolution:Convolution -> @+position:U32 -> @+end:U32 -> @+start:U32 -> @state:Calling<Work> -> Calling<Work>

The calls of output positions [position, end), one an image; start is the first position of the output.

template Operands source · line 126 · raw

@-Kept:Type -> Type

template owned source · line 129 · raw

@-Kept:Type -> @window:0xa2af805348d03b11eb853850859654f6/tensor_move.Holding<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @spare:0xa2af805348d03b11eb853850859654f6/tensor_move.Spare<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @finished:Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept) -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept))

template ended source · line 133 · raw

@-Kept:Type -> @-Work:Type -> @-finish:(@+convolution:Convolution -> @+positions:U32 -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept)) -> @+convolution:Convolution -> @+positions:U32 -> @state:Calling<Work> -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept))

template computed source · line 140 · raw

@-Kept:Type -> @-Work:Type -> @-begin:(@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @_:Kept -> Work) -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @-finish:(@+convolution:Convolution -> @+positions:U32 -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept)) -> @+convolution:Convolution -> @+first:U32 -> @+count:U32 -> @operands:Operands(Kept) -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept))

The output piece of first cell first and count cells: begin gives the work of its positions, the calls compute them and finish gives its cells.

template split_parameters source · line 154 · raw

@-Kept:Type -> @spare:0xa2af805348d03b11eb853850859654f6/tensor_move.Spare<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @kept:Pair(Kept, Kept) -> Pair(Parameters<Kept>, Parameters<Kept>)

The tasks after a split: the new half gets a spare of its own.

template shared source · line 158 · raw

@-Kept:Type -> @-share:(@_:Kept -> Pair(Kept, Kept)) -> @parameters:Parameters<Kept> -> Pair(Parameters<Kept>, Parameters<Kept>)

template task_tree source · line 202 · raw

@-Kept:Type -> @-Work:Type -> @-begin:(@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @_:Kept -> Work) -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @-finish:(@+convolution:Convolution -> @+positions:U32 -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept)) -> @remaining:Nat -> @+convolution:Convolution -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+piece:U32 -> @+low:U32 -> @+high:U32 -> @+first:U32 -> @+count:U32 -> @ready:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Walking<0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept)> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Walked<0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept)>

The cells [first, first + count) of the output piece piece and of the pieces after it that the task's cells [low, high) cover, remaining more. Each piece waits on the left for the pieces after it, so the task calls no closure.

template task_finished source · line 217 · raw

@-Kept:Type -> @+first:U32 -> @+count:U32 -> @walked:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Walked<0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Operands(Kept)> -> Pair(0xa2af805348d03b11eb853850859654f6/traversal_partition.Tree<&1, 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8), Unit>, Parameters<Kept>)

template prepared source · line 228 · raw

@-Kept:Type -> @-prepare:(@+convolution:Convolution -> @+positions:U32 -> @_:Kept -> Kept) -> @+convolution:Convolution -> @+positions:U32 -> @parameters:Parameters<Kept> -> Parameters<Kept>

template task_leaf source · line 235 · raw

@-Kept:Type -> @-Work:Type -> @-begin:(@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @_:Kept -> Work) -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @-finish:(@+convolution:Convolution -> @+positions:U32 -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept)) -> @-prepare:(@+convolution:Convolution -> @+positions:U32 -> @_:Kept -> Kept) -> @context:Windowed -> @first:U32 -> @count:U32 -> @window:0xa2af805348d03b11eb853850859654f6/tensor_move.Holding<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @parameters:Parameters<Kept> -> Pair(0xa2af805348d03b11eb853850859654f6/traversal_partition.Tree<&1, 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8), Unit>, Parameters<Kept>)

A task: its output cells, whole pieces or a part of one, from the input pieces it holds.

template windowed_tasks source · line 252 · raw

@-Kept:Type -> @-Work:Type -> @-begin:(@+convolution:Convolution -> @+positions:U32 -> @+count:U32 -> @_:Kept -> Work) -> @-compute:(@+convolution:Convolution -> @+call:Call -> @_:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Work)) -> @-finish:(@+convolution:Convolution -> @+positions:U32 -> @_:Work -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, Kept)) -> @-prepare:(@+convolution:Convolution -> @+positions:U32 -> @_:Kept -> Kept) -> @-share:(@_:Kept -> Pair(Kept, Kept)) -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @kept:Kept -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

Every task reads the input pieces it holds and keeps its copy of the kernel's operands; the output pieces go to their places of the output grid.

template packed_finish source · line 297 · raw

@-custom:(@_:F32 -> F32) -> @+convolution:Convolution -> @+positions:U32 -> @work:PackedWork -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PackedKept)

template packed_tasks source · line 333 · raw

@-custom:(@_:F32 -> F32) -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @weights:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @bias:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

template point_finish source · line 375 · raw

@-custom:(@_:F32 -> F32) -> @+convolution:Convolution -> @+positions:U32 -> @work:PointWork -> Pair(0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8>, PointKept)

template point_tasks source · line 396 · raw

@-custom:(@_:F32 -> F32) -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @weights:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @bias:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

The pairs of the weights are built once and every task reads its copy.

template windowed_route source · line 403 · raw

@-custom:(@_:F32 -> F32) -> @direct:Bool -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @weights:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @bias:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

template windowed_when source · line 409 · raw

@-custom:(@_:F32 -> F32) -> @empty:Bool -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @weights:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @bias:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

template windowed source · line 416 · raw

@-custom:(@_:F32 -> F32) -> @+convolution:Convolution -> @+input_grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @+grid:0xa2af805348d03b11eb853850859654f6/tensor_grid.Grid -> @decision:0xa2af805348d03b11eb853850859654f6/tensor_tasks.Decision -> @pieces:0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8) -> @weights:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> @bias:0xa2af805348d03b11eb853850859654f6/storage_buffer.Buffer<0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8> -> 0xa2af805348d03b11eb853850859654f6/tensor_pieces.Pieces(0xa2af805348d03b11eb853850859654f6/kernel_tile.Tile8)

An empty output grid has no task.