(self, beam_size)
Repeat beam_size times along batch dimension.
Repeat beam_size times along batch dimension.
Repeat beam_size times along batch dimension .
def repeat_beam_size_times(self, beam_size):
        """ Repeat beam_size times along batch dimension. """
        self.init_src = self.init_src.data.repeat(1, beam_size, 1)
def repeat_beam_size_times ( self , beam_size ) : self . init_src = self . init_src . data . repeat ( 1 , beam_size , 1 )