pplonski/keras2cpp

LSTM to CPP, who has good method?

fengtongtong opened this issue · 3 comments

LSTM to CPP, who has good method?

Of relevance: #1

I have an LSTM model built with Keras framework. This model is for the next word prediction based on the previous text entered by the user.
So I have written a function in python which is loading this Keras model and a tokenizer file(for word-sequences) into it and using inbuilt functions like predict_classes and pad_sequences to make next word predictions.
I have to convert this function to C++, so can anyone help me out how to use this repo for my use. I tried using Cython but that didn't help as it converts a 52 line code in Python to 4000 line code in C++ which is not convenient. It is inconvenient to debug the 4000 line of code without knowing its relevance.