Hi, I would like to apply a convolution over the embeddings of words of a sentence.
For example let’s say I have a sentence with 5 words. My embedding size is 128. Then my input shape is 5x128. I would like to convolve this input with a convolution whose output channel is 4 and input channel is 1 and kernel is the size of  2x128  (I guess convolution used in this way with textual input right ? )
How can I do it in pytorch? Is it the correct way to do it? My aim is to get a combination of the word representations of a sentence
x = torch.rand(5,128)
w = nn.conv2d(1,2,128,4)
 F.conv2d(x,w)