Building the list and then using stack at the end is reasonable:
outx = []
for i in range(5):
    tmp = net(x) # this will return a 10x10 tensor
    outx.append(tmp)

outx = torch.stack(outx, 2)

Best regards
Thomas