pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

memory error while running example #24

Closed ckirksey3 closed 7 years ago

ckirksey3 commented 7 years ago

I'm able to walk through the entire example until I get to running the dumped file. When I run: ./a.out

I get this error:

Layers 12
Layer 0 Convolution2D
Layer 0 Convolution2D
Layer 0 Convolution2D
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

Any idea what's going on?

pplonski commented 7 years ago

Hi there! I think that might be a Keras version problem, I assume based on PR from you that you are on 2.0? Have you tried with older Keras version?

ckirksey3 commented 7 years ago

No, I'll give that a try and let you know.