I have this code :
from torch.autograd import Variable d_real_data = Variable(d_sampler(d_input_size)) But I wonder what is the difference between Variable(d_sampler(d_input_size)) and d_sampler(d_input_size)
I think it is two tensors but the values are different. So I was wondering what is the goal of this function Variable ?