I have an input tensor as follow:
a = tf.constant([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
and the 'multiple' tensor:
mul= tf.constant([1, 3, 2])
Is it possible to tile a 3D tensor with the first element of a
appears once, the second appears 3 times, the last element appears twice?
result = [
[[1, 2, 3]],
[[4, 5, 6],[4, 5, 6],[4, 5, 6]],
[[7, 8, 9], [7, 8, 9]]
]
Tensorflow 0.12
Thank you very much.