If you want to train the encoder together with both decoders the first variant is the one to go with.
Version 2 trains the encoder together with decoder_SO and the other decoder will be trained separately.