Input-dependent edge-cloud mapping of recurrent neural networks inference