LSTM bug is caused by different behaviour of std::tanh() and hand- crafted tanh() via std::exp().
Attach a file by drag & drop or click to upload