It will call the same computations  (you cannot make part of the model to disappear )
But your state dict will has two main parts
model.encoder  and model.decoder
It’s just a matter of readability and modularity