Understanding adjusting Transformer max length

Hello, professors

In the config of the transformer, it shows us 3 types of max length.
There are 1. encoder 2. decoder 3. output max length

If we want to change the transformer model output max length, we need to change 3 of them equally because the transformer, uses the length of encoder output and decoder output as an input of the model output. please correct me if I am wrong.

Thanks, sir.



image