Hey there,
I just want to know, if I  want to expand only one dimension in the middle for a tensor like [3, 5], both of those statements give me [3, 1, 5], which one is better?
y1 = np.random.randn(3, 5)

y1_exp = tf.expand_dims(y1, axis=1)
print(y1_exp.shape)

y2_exp = RepeatVector(1)(y1)
print(y2_exp.shape)


🙇🏻‍♂️