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

Inference result is different between keras model and c++ #21

Open chojuahn opened 4 years ago

chojuahn commented 4 years ago

Using the sample code with a single Dense layer, the result is different between keras model and c++. keras model: -0.03101047 c++: -0.0310103893

I would like to know where this decimal difference comes from. I'm attaching .h5 and model file for easier reproducing.

keras: 2.3.0 tensorflow-gpu: 2.1.0 example.zip