Question d’entretien chez Wipro

How does transformer work and what will change if we make changes in encoder decoder blocks?