RNN that uses integer indices as inputs and outputs.