#include "keras_model.h"
Definition at line 136 of file keras_model.h.
keras::LayerFlatten::LayerFlatten |
( |
| ) |
|
|
inline |
Implements keras::Layer.
Definition at line 124 of file keras_model.cc.
References keras::DataChunkFlat::get_1d_rw(), and keras::DataChunk::get_3d().
125 vector<vector<vector<float> > > im = dc->
get_3d();
127 size_t csize = im[0].size();
128 size_t rsize = im[0][0].size();
129 size_t size = im.size() * csize * rsize;
132 for(
size_t i = 0, dst = 0; i < im.size(); ++i) {
133 for(
size_t j = 0; j < csize; ++j) {
134 float * row = im[i][j].data();
135 for(
size_t k = 0; k < rsize; ++k) {
136 y_ret[dst++] = row[k];
virtual std::vector< std::vector< std::vector< float > > > const & get_3d() const
std::vector< float > & get_1d_rw()
virtual unsigned int keras::LayerFlatten::get_input_cols |
( |
| ) |
const |
|
inlinevirtual |
virtual unsigned int keras::LayerFlatten::get_input_rows |
( |
| ) |
const |
|
inlinevirtual |
std::string keras::Layer::get_name |
( |
| ) |
|
|
inlineinherited |
virtual unsigned int keras::LayerFlatten::get_output_units |
( |
| ) |
const |
|
inlinevirtual |
void keras::LayerFlatten::load_weights |
( |
std::ifstream & |
fin | ) |
|
|
inlinevirtual |
std::string keras::Layer::m_name |
|
inherited |
The documentation for this class was generated from the following files:
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/RecoAlg/ImagePatternAlgs/Keras/keras_model.h
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/RecoAlg/ImagePatternAlgs/Keras/keras_model.cc