Get value out of torch.cuda.float tensor

if you want only numerical,Ithink you can do like this.
Variable.data---->tensor
Variable.data.tolist()---->list
Variable.data.tolist()[0]---->folat

5 Likes