I want to compute a block-based std on the image, but I don’t know which way is efficient and whether the gradient of std can be backpropagated.
For example, I have images: 10x1x20x20 (NCHW), I want to compute the std within 3x3 window on the images and compute each std in this 3x3 matrix and do backpropagation. Can anyone help me? Thanks!