Thank you for your reply. However, if I do that I get this error: RuntimeError: Variable data has to be a tensor, but got Variable The part of the code I am looking at looks like this:
from torch.autograd import Variable
c = nn.Conv1d(1,3,4,1)
x = x[:,None,:]
x = Variable(x)
c(x)