LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
keras::DataChunk Class Referenceabstract

#include "keras_model.h"

Inheritance diagram for keras::DataChunk:
keras::DataChunk2D keras::DataChunkFlat

Public Member Functions

virtual ~DataChunk ()
 
virtual size_t get_data_dim (void) const
 
virtual std::vector< float > const & get_1d () const
 
virtual std::vector< std::vector< std::vector< float > > > const & get_3d () const
 
virtual void set_data (std::vector< std::vector< std::vector< float > > > const &)
 
virtual void set_data (std::vector< float > const &)
 
virtual void read_from_file (const std::string &fname)
 
virtual void show_name ()=0
 
virtual void show_values ()=0
 

Detailed Description

Definition at line 41 of file keras_model.h.

Constructor & Destructor Documentation

virtual keras::DataChunk::~DataChunk ( )
inlinevirtual

Definition at line 43 of file keras_model.h.

43 {}

Member Function Documentation

virtual std::vector<float> const& keras::DataChunk::get_1d ( ) const
inlinevirtual

Reimplemented in keras::DataChunkFlat.

Definition at line 45 of file keras_model.h.

Referenced by keras::LayerActivation::compute_output(), keras::LayerDense::compute_output(), and keras::KerasModel::compute_output().

45 { throw "not implemented"; };
virtual std::vector<std::vector<std::vector<float> > > const& keras::DataChunk::get_3d ( ) const
inlinevirtual
virtual size_t keras::DataChunk::get_data_dim ( void  ) const
inlinevirtual

Reimplemented in keras::DataChunkFlat, and keras::DataChunk2D.

Definition at line 44 of file keras_model.h.

Referenced by keras::LayerActivation::compute_output().

44 { return 0; }
virtual void keras::DataChunk::read_from_file ( const std::string &  fname)
inlinevirtual

Reimplemented in keras::DataChunkFlat, and keras::DataChunk2D.

Definition at line 50 of file keras_model.h.

References show_name(), and show_values().

Referenced by main(), and keras::DataChunk2D::show_values().

50 {};
virtual void keras::DataChunk::set_data ( std::vector< std::vector< std::vector< float > > > const &  )
inlinevirtual

Reimplemented in keras::DataChunk2D.

Definition at line 47 of file keras_model.h.

Referenced by keras::LayerActivation::compute_output(), and nnet::KerasModelInterface::Run().

47 {};
virtual void keras::DataChunk::set_data ( std::vector< float > const &  )
inlinevirtual

Reimplemented in keras::DataChunkFlat.

Definition at line 48 of file keras_model.h.

48 {};
virtual void keras::DataChunk::show_name ( )
pure virtual

Implemented in keras::DataChunkFlat, and keras::DataChunk2D.

Referenced by read_from_file().

virtual void keras::DataChunk::show_values ( )
pure virtual

Implemented in keras::DataChunkFlat, and keras::DataChunk2D.

Referenced by read_from_file().


The documentation for this class was generated from the following file: