Especially when the code comment specifically says to use RepeatVector().
And you might find this thread useful: