LSTM implementation on Caffe