Functions
example_main.cc File Reference
#include "keras_model.h"
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 17 of file example_main.cc.

17  {
18  cout << "This is simple example with Keras neural network model loading into C++.\n"
19  << "Keras model will be used in C++ for prediction only." << endl;
20 
21  DataChunk *sample = new DataChunk2D();
22  sample->read_from_file("./example/sample_mnist.dat");
23  std::cout << sample->get_3d().size() << std::endl;
24  KerasModel m("./example/dumped.nnet");
25  m.compute_output(sample);
26 
27  return 0;
28 }
virtual void read_from_file(const std::string &fname)
Definition: keras_model.h:50
virtual std::vector< std::vector< std::vector< float > > > const & get_3d() const
Definition: keras_model.h:46
QTextStream & endl(QTextStream &s)