LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ScheduleContext.h File Reference

Go to the source code of this file.

Classes

class  art::ScheduleContext
 

Namespaces

 art
 HLT enums.
 
 art::detail
 

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 17 of file example_main.cc.

References checkLoadability(), keras::KerasModel::compute_output(), tca::evt, Finalize(), keras::DataChunk::get_3d(), Initialize(), ProcessEvent(), keras::DataChunk::read_from_file(), and Z.

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