It is printing the index numbers: targets.data tensor([0, 1, 2, 3, 4, 5]), if I print(target)
it gives error:
print(“targets.data”, targets.item())
ValueError: only one element tensors can be converted to Python scalars
, if I print( targets.item())