Hi everyone,
I have two 2D tensors of shape:
y = torch.Size([50, 61])   # (batch_size, max_len)
x = torch.Size([50, 800])  # (batch_size, n_lstm_units)

what I would like to get is a 3D tensor made like this:
z = (50, 61, 800)  # (batch_size, max_len, n_lstm_units)

how can I do?
What I tried to do was to increase the size of x and y via unsqueeze(), resulting in (50, 61, 1) and (50, 1, 800). The problem is that afterwards I don’t know how to join the tensors without concatenating the values but simply “transferring” a dimension to obtain (50, 61, 800) (the idea is not to concatenate the values, but only to “move” a dimension from one tensor to another … I don’t know if I get the idea).