For example, I have a tensor A = tf.Variable([a, b, c, d, e])
and through
tf.tile()
, it can give a tensor like [a, b, c, d, e, a, b, c, d, e]
But I want to reform A
into something like: [a, a, b, b, c, c, d, d, e]
, where the elements are duplicated at the original place.
What is the most efficient way (less operations) to achieve that (through different-able ops)?