Thank you. I am getting the gist of the idea even though I still have some questions. So what I understand, I should be generating masks for src and tgt both so that it would hide the elements ahead (not yet predicted).