jubick:

After convolution i’m getting strange shaped tensor [1, 100, 118].


You’ll get this output, since you are passing an input of  [batch_size=5, emb_dim=300, seq_len=120] to your conv layer, which will output [5, 100, 118].
dim1=100 is defined by the number of filters (out_channels), while the sequential dimension is decreased due to the kernel size without padding.
I’m not completely sure, what your last code snippet does.
Are you splitting the input into sentences and pass each sentence separately?