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