Convolutional layer in Python using Numpy
问题 I am trying to implement a convolutional layer in Python using Numpy. The input is a 4-dimensional array of shape [N, H, W, C] , where: N : Batch size H : Height of image W : Width of image C : Number of channels The convolutional filter is also a 4-dimensional array of shape [F, F, Cin, Cout] , where F : Height and width of a square filter Cin : Number of input channels ( Cin = C ) Cout : Number of output channels Assuming a stride of one along all axes, and no padding, the output should be