Example

Example of Multi-Output Channel Kernel Construction

We can construct a multi-output channel convolution kernel programmatically by concatenating existing kernel tensors. For example, if K is a multi-input channel kernel tensor for a single output channel, we can stack K, K + 1, and K + 2 along the 0extrmth0^ extrm{th} dimension to create a kernel with three output channels. If the original K had a shape of 2imes2imes22 imes 2 imes 2 (representing cextrmiimeskextrmhimeskextrmwc_ extrm{i} imes k_ extrm{h} imes k_ extrm{w}), the new stacked kernel will have an overall shape of 3imes2imes2imes23 imes 2 imes 2 imes 2.

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L