def mass_generator_val():
     for enc_inp, dec_inp, dec_out in val_padded:
         enc_padding_mask, combined_mask, _ = transformer.create_masks(
             enc_inp, dec_inp)
         yield (enc_inp, dec_inp, enc_padding_mask,
                combined_mask), dec_out
 def mass_generator_test():
     for enc_inp, dec_inp in test_padded:
         enc_padding_mask, combined_mask, _ = transformer.create_masks(
             enc_inp, dec_inp)
         yield (enc_inp, dec_inp, enc_padding_mask, combined_mask)