Hi,
This error is not from the accumulation but the fact that the convolution returns a gradient for an input that is not the same size as the input itself.
I guess you’re playing trick changing some sizes? in between the forward and backward?