Why does the non autoregresive transfomer model in fairseq require the prev_output_tokens input?
It is there to maintain consistency with the signature of the forward method of the base class TransformerModel and therefore allow to use it in place of any other autoregressive transformer, but it is actually not used. The same happens in the model decoder.