I’m not sure about the architecture decision for this model and I would guess @vdw might know more about this particular decoding strategy. 
However, if you are looking for an encoder and decoder model with RNNs in both parts, have a look at the Seq2Seq tutoorial 1