(self, max_len, pad_id)
Pad decoder input and target sequences with pad_id up to max_len.
Pad decoder input and target sequences with pad_id up to max_len.
Pad decoder input and target sequences with pad_id up to max_len .
def pad_decoder_inp_targ(self, max_len, pad_id):
    """Pad decoder input and target sequences with pad_id up to max_len."""
    while len(self.dec_input) < max_len:
      self.dec_input.append(pad_id)
    while len(self.target) < max_len:
      self.target.append(pad_id)
def pad_decoder_inp_targ ( self , max_len , pad_id ) : while len ( self . dec_input ) < max_len : self . dec_input . append ( pad_id ) while len ( self . target ) < max_len : self . target . append ( pad_id )