Thanks @zhangguanheng66. I am looking for translation therefore, tgt is required. I was confused as to how to format the tgt tensor. However, trying with things I figured out the difference between inference and test time settings for translation. Thanks nonetheless.