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

Error C2440 'initializing': cannot convert from 'initializer list' to 'keras2cpp::Tensor' #20

Open mortalrahu opened 4 years ago

mortalrahu commented 4 years ago

Unbenannt

Hey everyone,

I am trying to run the cpp file from Visual Studio 15.9.15

Facing the five errors (shown in the attached picture).

Please let me know if you know how to fix it

Thanks in advance.

bevancollins commented 4 years ago

you have to enable C++17. In VisualStudio, under project > Properties > C/C++ > Language > C++ Language Standard. Or set the compile option /std:c++17

jp31415926 commented 4 years ago

I believe you can close this [non-]issue.