Scalable end-to-end recurrent neural network for variable star classification