First i splitted the original tensor and then after some operations i want to combine the tensor to the original shape and the original tensor, before splitting it. I'm not sure i can just use the old tensor with graph mode in tensorflow.
Each dimension of the four dimension of tensor_a has at least a size of 2.
tensor_a = tf.split(tensor_c, split_into, axis=1)) # creating additional dimension
# some operations
tensor_a = tf.convert_to_tensor(tensor_a)
first, second, third, fourth = tensor_a.shape
tensor_b = tf.reshape(tensor_a, (second, first * third, fourth))