I have a tensor which is simply a vector, vector = [0.5 0.4] and tf.shape indicates that it has shape=(1,), I would like to replicate the vector m times and hav
vector = [0.5 0.4]
Tensorflow 2.0 solution: Refer to this link to read more about tf.tile
vector = [0.5, 0.4] tf.reshape(tf.tile(vector, [2]), [2, tf.shape(vector)[0]]) # output