Here is my code:
filters = torch.randn(8,4,3,3).cuda()
inputs = torch.randn(1,4,5,5).cuda()
torch.nn.functional.conv2d(inputs, filters, padding=1)

Error: TypeError: argument 0 is not a Variable.
I don’t want to use autograd.Variable to wrap my tensors and treat each computation as a node, even it’s a very thin wrapper since I might loop each layer 1000 times. Why is a variable necessary for convolution operation?