A row of twelve values reads 2, 1, 0, 0, 3, 3, 3, 0, 0, 1, 2, 2. A five-tap kernel with entries 1, 0, 0, 0, -1 slides across it with no padding. Give the number of outputs, the value of the first output, and the number of parameters the layer learns when it also has one bias.
This tier asks for a derivation, so there is no automatic checker. Write your answer, then open the worked solution and compare.
Worked solution
The number of stopping positions is . At the first stop the window is 2, 1, 0, 0, 3. Multiply entry by entry: , , , , and . The sum is . The remaining stops give -2, -3, 0, 3, 2, 1 and -2, so the full output is -1, -2, -3, 0, 3, 2, 1, -2. The layer learns five kernel weights and one bias, which is six parameters, and every stop uses the same five weights. A dense layer from the same twelve inputs to the same eight outputs would learn parameters. The shared kernel pays 6 instead of 104 for the same output shape, and it gives up the freedom to treat the two ends differently.