In [1]: import torch
In [2]: x=torch.randn(2)
In [3]: w=torch.randn(2,3)
In [4]: x@w
Out[4]: tensor([0.9364, 1.3934, 0.3611])
In [5]: _.shape
Out[5]: torch.Size([3])
In [8]: x.repeat(2,1)
Out[8]:
tensor([[ 0.2738, -1.1417],
[ 0.2738, -1.1417]])
In [9]: x.repeat(2