I have tensors t1
and t2
respectively with same size and dimensions. I would want tx
to extend t1
and then t2
.
t1 = torch.Tensor([[5, 2], [6, 3], [7, 9]])
t2 = torch.Tensor([[4, 5], [1, 4], [3, 8]])
And I would want tensors tx
to be like
>> tensor([5, 2], [6, 3], [7, 9], [[4, 5], [1, 4], [3, 8])
Does tensors supports me to do this? If so, then how?