I am now learning building neural networks in PyTorch. Here are the codes cut from the .py file:
x = torch.unsqueeze(torch.linspace(-1, 1, 1000), dim=1)
y = x.pow(2) + 0.1*torch.normal(torch.zeros(*x.size()))
I am quite comfused about the utility of the * operator before x.size(). I tried to delete it and plot the scatter graph, which was proved the same as the one with * not removed.
I also checked the official documentation of size in https://pytorch.org/docs/stable/tensors.html but I couldn't figure it out.
Image of torch.size item in documentation
I'd appreciate it very much if you may help me.