Sigh. Is that even a PyTorch question - it has TF-style WHN layout (and no C)?
I’d recommend checking out one of the excellent 5 tutorials 3 on how convolution works and think about what values in the kernel and in your tensor interact.
Best regards
Thomas