I want to concat tensor generated in for loop, and get 2dTensor.
standard python, like below.
li = []
for i in range(0, len(items)):
# calc something
li.append(calc_result)
In my case, in for loop, generate torch.Size([768]) Tensor, and I want to get torch.Size([len(item),768]) Tensor.
How to do this?