Tensorflow: combining two tensors with dimension X into one tensor with dimension X+1
This is impossible. You have tensor, which contains batch_size * max_word_length 
 elements and tensor which contains batch_size * predicted_label elements. Hence there are 
batch_size * (max_word_length + predicted_label) 
elements. And now you want to create new tensor [batch_size, max_word_length, predicted_label] with 
batch_size * max_word_length * predicted_label 
elements. You don't have enough elements for this.
I am doing some sentiment analysis with Tensorflow, but there is a problem I can't solve:
I have one tensor (input) shaped as [?, 38] [batch_size, max_word_length] and one (prediction) shaped as [?, 3] [batch_size, predicted_label].
My goal is to combine both tensors into a single tensor with the shape of [?, 38, 3].
This tensor is used as the input of my second stage.
Seems easy, but i can't find a way of doing it.
Can (and will) you tell me how to do this?