Learn Before
Two-Dimensional Convolutional Layer Code Implementation
A two-dimensional convolutional layer can be implemented programmatically by defining a class that encapsulates its two core parameters: the kernel weights and the scalar bias. In the class constructor, these parameters are declared and initialized (e.g., initializing weights randomly and bias to zero). The layer's forward propagation method then computes the output by executing a two-dimensional cross-correlation between the input and the kernel weights, and subsequently adding the scalar bias to the result.
0
1
Tags
D2L
Dive into Deep Learning @ D2L
Related
Convolution Layer Output Size and Parameter Formulas
Limitation of Manually Designed Convolutional Kernels
Equivalence of Strict Convolution and Cross-Correlation
Feature Map
Two-Dimensional Convolutional Layer Code Implementation
Convolution Kernel and Layer Size Notation
Waldo Detector Convolution Example
Object Edge Detection Using Convolution
Locality and Hardware Optimization of Convolutions
Channel Depth in Convolutional Networks