Reputation: 4031
I have two tensors as below:
x1 = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
x2 = tf.constant([[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]])
How should I merge and transform x1 and x2, so that I can have a tensor like below:
[[[1.0, 7.0]
[2.0, 8.0]
[3.0, 9.0]]
[[4.0, 10.0]
[5.0, 11.0]
[6.0, 12.0]]
]
Upvotes: 3
Views: 4550