What is the best and fastest way to iterate over Tensor. It is confusing why do I get tensor instead of value..
got this :
[ x for x in t]
Out[122]: [tensor(-0.12), tensor(-0.11), tensor(0.68), tensor(0.68), tensor(0.17)]
but expected this behavior :
[ x for x in t.numpy() ]
Out[123]: [-0.11932722, -0.114598714, 0.67563725, 0.6756373, 0.16548502]
I would prefer not to convert to numpy if possible ?