Javadoc
A preprocessor to allow CNN and standard feed-forward network layers to be used together.
For example, DenseLayer -> CNN
This does two things:
(a) Reshapes activations out of FeedFoward layer (which is 2D or 3D with shape
[numExamples, inputHeight*inputWidth*numChannels]) into 4d activations (with shape
[numExamples, numChannels, inputHeight, inputWidth]) suitable to feed into CNN layers.
(b) Reshapes 4d epsilons (weights*deltas) from CNN layer, with shape
[numExamples, numChannels, inputHeight, inputWidth]) into 2d epsilons (with shape
[numExamples, inputHeight*inputWidth*numChannels]) for use in feed forward layer
Note: numChannels is equivalent to depth or featureMaps referenced in different literature