I occurs such a problem when I try to development a module with Parameter. I have to initialize the Parameter with torch.**Tensor or torch.cuda.**Tensor,  so how can I construct a mudule that is adaptive to cpu and gpu Tensor?
Such as:
For cpu:
x = torch.FloatTensor(2,3).cauchy_()
para = Parameter(x)
For gpu:
x = torch.cuda.FloatTensor(2,3).cauchy_()
para = Parameter(x)
It is better  let it be adaptive because we have to use the para for computation, and we have to make every
variable to be cup/gpu tensor.
So could someone help me?