I am using torch v0.4

Why I got 0 dimension tensor in pytorch?
Why do we need it?

Below is what I did  in jupyter notebook (I found this happen while running some codes sometimes though I cannot find a way to creat a 0-dim tensor myself)
print(class_correct[0].class)
print(class_correct[0].dim())
print(class_correct[0])
<class ‘torch.Tensor’>
0
tensor(48, dtype=torch.uint8)