_uniform() for torch.autograd.variable.Variable

Hi, I am working with gumbel softmax and in one line of the cod, there is “logits.clone().uniform_()” command for “torch.Tensor” input type.

However, the input in my code is in the class of “torch.autograd.variable.Variable”. and I can’t use “uniform_” command due to this error: ‘Variable’ object has no attribute ‘uniform_’.
I need to know how I can change that part of the code?
Thanks!