LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 44 of file keras_model.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file keras_model.h.

46 {}

Member Function Documentation

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

Reimplemented in keras::DataChunkFlat.

Definition at line 48 of file keras_model.h.

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

48 { 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 47 of file keras_model.h.

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

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

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

Definition at line 56 of file keras_model.h.

References show_name(), and show_values().

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

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

Reimplemented in keras::DataChunkFlat.

Definition at line 54 of file keras_model.h.

54 {};
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: