Public Member Functions | List of all members
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.

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

Reimplemented in keras::DataChunk2D.

Definition at line 46 of file keras_model.h.

46 { throw "not implemented"; };
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.

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.

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.

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
virtual void keras::DataChunk::show_values ( )
pure virtual

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