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]
An answer without reshaping:
vec = tf.constant([[1, 2, 3, 4]]) multiply = tf.constant([3, 1]) tf.tile(vec, multiply)