Ah okei, I wanted to avoid calling repeat in each forward step for efficience. However I suppose .repeat() is good optimized  (at least would be much quicker than looping at python level)
Thanks @albanD