encoder_outputs = cls.encoder(inputs, **encoder, **kwargs)
x = cls.embedding(encoder_outputs[-1], **embedding, **kwargs)
if x != encoder_outputs[-1]:
encoder_outputs += [x]
After Change
embeddings = []
for i, embedding in enumerate(embeddings):
embedding_args = {**kwargs, **embedding}
x = cls.embedding(x, **embedding_args)
embeddings.append(x)
encoders.append(x)