tf.broadcast_to
import tensorflow as tf
x = tf.constant([1, 2, 3])
y = tf.broadcast_to(x, [5, 3])
print(y)
tf.Tensor(
[[1 2 3]
 [1 2 3]
 [1 2 3]
 [1 2 3]
 [1 2 3]], shape=(5, 3), dtype=int32)
import tensorflow as tf
x = tf.constant([1, 2, 3])
y = tf.broadcast_to(x, [5, 3])
print(y)
tf.Tensor(
[[1 2 3]
 [1 2 3]
 [1 2 3]
 [1 2 3]
 [1 2 3]], shape=(5, 3), dtype=int32)
