Variable can only contain Tensors. But you can just convert your numpy array to a Tensor with: torch.from_numpy. Before creating a Variable from it.
Also you should remember that any action that you do directly on the tensor with var.data will not autograd !