LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
keras::DataChunkFlat Class Reference

#include "keras_model.h"

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

Public Member Functions

 DataChunkFlat (size_t size)
 
 DataChunkFlat (size_t size, float init)
 
 DataChunkFlat (void)
 
std::vector< float > & get_1d_rw ()
 
std::vector< float > const & get_1d () const
 
void set_data (std::vector< float > const &d)
 
size_t get_data_dim (void) const
 
void show_name ()
 
void show_values ()
 
void read_from_file (const std::string &fname)
 
virtual std::vector< std::vector< std::vector< float > > > const & get_3d () const
 
virtual void set_data (std::vector< std::vector< std::vector< float >>> const &)
 

Public Attributes

std::vector< float > f
 

Detailed Description

Definition at line 104 of file keras_model.h.

Constructor & Destructor Documentation

keras::DataChunkFlat::DataChunkFlat ( size_t  size)
inline

Definition at line 106 of file keras_model.h.

106 : f(size) {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
std::vector< float > f
Definition: keras_model.h:110
keras::DataChunkFlat::DataChunkFlat ( size_t  size,
float  init 
)
inline

Definition at line 107 of file keras_model.h.

107 : f(size, init) {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
std::vector< float > f
Definition: keras_model.h:110
keras::DataChunkFlat::DataChunkFlat ( void  )
inline

Definition at line 108 of file keras_model.h.

108 {}

Member Function Documentation

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

Reimplemented from keras::DataChunk.

Definition at line 112 of file keras_model.h.

References f.

112 { return f; }
std::vector< float > f
Definition: keras_model.h:110
std::vector<float>& keras::DataChunkFlat::get_1d_rw ( )
inline

Definition at line 111 of file keras_model.h.

References f.

Referenced by keras::LayerFlatten::compute_output(), and keras::LayerDense::compute_output().

111 { return f; }
std::vector< float > f
Definition: keras_model.h:110
virtual std::vector<std::vector<std::vector<float> > > const& keras::DataChunk::get_3d ( ) const
inlinevirtualinherited
size_t keras::DataChunkFlat::get_data_dim ( void  ) const
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 114 of file keras_model.h.

114 { return 1; }
void keras::DataChunkFlat::read_from_file ( const std::string &  fname)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 124 of file keras_model.h.

124 {};
virtual void keras::DataChunk::set_data ( std::vector< std::vector< std::vector< float >>> const &  )
inlinevirtualinherited
void keras::DataChunkFlat::set_data ( std::vector< float > const &  d)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 113 of file keras_model.h.

References d.

113 { f = d; };
Float_t d
Definition: plot.C:235
std::vector< float > f
Definition: keras_model.h:110
void keras::DataChunkFlat::show_name ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 116 of file keras_model.h.

116 { std::cout << "DataChunkFlat " << f.size() << std::endl; }
std::vector< float > f
Definition: keras_model.h:110
void keras::DataChunkFlat::show_values ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 117 of file keras_model.h.

118  {
119  std::cout << "DataChunkFlat values:" << std::endl;
120  for (size_t i = 0; i < f.size(); ++i)
121  std::cout << f[i] << " ";
122  std::cout << std::endl;
123  }
std::vector< float > f
Definition: keras_model.h:110

Member Data Documentation

std::vector<float> keras::DataChunkFlat::f

Definition at line 110 of file keras_model.h.


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