You can use tf.concat
for this purpose as follows:
sess=tf.Session()
t1 = [[1, 2], [4, 5]]
t2 = [[7, 8, 9], [10, 11, 12]]
res=tf.concat(concat_dim=1,values=[t1, t2])
print(res.eval(session=sess))
Will print
[[ 1 2 7 8 9]
[ 4 5 10 11 12]]
source
to share