afp_convolve2_gradient_nn
Calculates backward pass gradient of 2D convolution. This function calculates the gradient with respect to the output of the afp_convolve2NN function that uses the machine learning formulation for the dimensions of the signals and filters.
Arguments
- Gradient array, gradients to be distributed in backwards pass
- Input signal array
- Input filter array, filter to forward pass of convolution
- Output array from forward pass of convolution
- Integer, number of stride dimensions
- Integer, number of padding dimensions
- Integer, number of dilation dimensions
- Integer, gradient to return: 1 - filter, 2 - data, 3 - bias
Output
Resulting array
Examples