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 dimension to create a kernel with three output channels. If the original K had a shape of (representing ), the new stacked kernel will have an overall shape of .
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L