@ptrblck thank you for replying.
however, if i use
F.conv1d(autograd.Variable(torch.randn(20, 200, 4)), autograd.Variable(torch.randn(256, 200, 2)), stride=1, padding=0, dilation=2).size()
i got tensor with size (20, 256, 2) , why ? what is the difference of both ?