You can have a look at my implementation of a RNN classifier (GRU or LSTM) with or without attention here: Github repository 156.
It basically directly derives from a many-to-many model, just with many=1 for the decoder. So there’s for example no loop in the decoder that generates more and more outputs (e.g., for machine translation).
I hope that helps.