(self, score, back_pointer, token_id)
Append intermediate top-k candidates to beam at each step
Append intermediate top-k candidates to beam at each step
Append intermediate top - k candidates to beam at each step
def update(self, score, back_pointer, token_id):  # , h):
        """Append intermediate top-k candidates to beam at each step"""

        # self.log_probs.append(log_prob)
        self.scores.append(score)
        self.back_pointers.append(back_pointer)
        self.token_ids.append(token_id)
def update ( self , score , back_pointer , token_id ) : # , h): # self.log_probs.append(log_prob) self . scores . append ( score ) self . back_pointers . append ( back_pointer ) self . token_ids . append ( token_id )