Dumb question, but how do I make a scalar Variable? I’d like to add a trainable parameter to a vector, but I keep getting size-mismatch problems.
# Works, but I can't make the 2 a 
# parameter, so I can't do gradient descent on it
Variable(torch.from_numpy(np.ones(5))) + 2 

Thanks!