# example 1)

list_ = []
for i in range(3):
   list_.append(i)
-----------------------------------------

# example 2)

x = torch.empty(2,3)
for i in range(3):
  y = torch.FloatTensor([[1,2,3],[4,5,6]])
  x = torch.cat([x, y], dim=0)
print(x)
> tensor([[-1.9967e-31,  4.5713e-41,  9.6263e-38],
        [ 0.0000e+00, -1.6586e-35,  4.5713e-41],
        [ 1.0000e+00,  2.0000e+00,  3.0000e+00],
        [ 4.0000e+00,  5.0000e+00,  6.0000e+00]])

list_=[] have no element but torch.empty() have some trash values.
How can I use torch.cat() without trash values ?
If this is impossible, how can I remove trash values from x ?