Hello, after reading this post (For beginners: Do not use view() or reshape() to swap dimensions of tensors! 2) regarding the usage of .view() and .reshape(), a doubt has come to my mind.
If I had a tensor ‘A’ of dimensions A=(N, H), being ‘N’ the batch dimensions and ‘H’ the dimensions of a LSTM, and a second tensor ‘B’, of dimensions B=(T) that represents a vector of time event of duration ‘T’, what would be the best way to concatenate both of them to obtain a vector ‘C’ of dimensions C=(N,H,T)?
Thanks!