gosha20777 / keras2cpp

it's a small library for running trained Keras 2 models from a native C++ code.
MIT License
183 stars 54 forks source link

embedding layer with mask_zero = True produces incorrect predictions #24

Open clinntt opened 4 years ago

clinntt commented 4 years ago

I have an embedding layer that looks like this:

Embedding( 30, 20, mask_zero=True, weights=wv_matrix, input_length=max_seq_len, trainable=False )

Any input data that contains 0 produces predictions that are different than keras. Input data that does not contain 0 produces same results as keras.