Print data of a 0-dim tensor

Hi everyone :slight_smile:

I am a PyTorch fresher, I am trying my best to avoid these stupid questions :)))

I got a 0-dim tensor like this: tensor(69, device=‘cuda:0’)

I just want to print “69” instead of the whole one "tensor(69, device=‘cuda:0’ "

How can I do it? Can someone please to help me?, I searched a lot however I do not know the keyword of the problem :frowning:

a = torch.tensor(69, device='cuda:0')