I was writing codes in Jupyter Lab, and I thought there would be two outputs generated by the code. But in order to get two outputs, I must explicitly use print(). I am confused about it, can someone help me?
code :
import torch
a = torch.tensor([1, 2, 3])
a.dtype # print(a.dtype)
a = a.type(torch.int32)
a.dtype # print(a.dtype)