I am implementing an SSD Model from amdegroot repo of github, and upon running the file geetting issue with the conversion of tensor into Variable as the direct variable function is deprecated in the new release of torch. How should I go further.
I was getting error due to this:   x = torch.autograd.Variable(x.unsqueeze(0))
So, I tried this way  :  x = torch.autograd.backward(x),
but still getting error :
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn.
Will be very thankful for your help.