sorry for retrieving this question.
lets say i wanna do convolution with a specific filter on tensors.
e.g. my kernel is:
H = torch.Tensor([[1 ,0, -1],[2, 0 ,-2], [1, 0 ,-1]]), so it is 3x3 originally, but i can expand it in a size that is needed.
If my tensor T, has size of BxCxDxD, What should be the size and shape of my kernel so i can do conv2d(T,H) and get the output of BxCxDxD