as the conv layer performs the sum of the elementwise product between two arrays A and B
however , I would like to use the same iteration mechanism to perform a custom operation as follows:
for those who might notice that this equation is the Kullback–Leibler divergence, indeed I want to perform the KL div between 2d arrays that have different sizes that’s why I need the sliding mechanism from the conv layer to run kl iteratively…
thnk