19 #ifndef TESSERACT_LSTM_MAXPOOL_H_ 20 #define TESSERACT_LSTM_MAXPOOL_H_ 69 #endif // TESSERACT_LSTM_MAXPOOL_H_ void add_str_int(const char *str, int number)
Definition: strngs.cpp:379
Maxpool(const STRING &name, int ni, int x_scale, int y_scale)
Definition: maxpool.cpp:24
virtual ~Maxpool()=default
Definition: networkscratch.h:36
int32_t y_scale_
Definition: reconfig.h:79
Definition: serialis.h:77
Definition: baseapi.cpp:94
const STRING & name() const
Definition: network.h:138
Definition: weightmatrix.h:33
GENERIC_2D_ARRAY< int > maxes_
Definition: maxpool.h:59
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
Definition: maxpool.cpp:73
int32_t x_scale_
Definition: reconfig.h:78
Definition: networkio.h:39
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
Definition: maxpool.cpp:39
Definition: reconfig.h:33
bool DeSerialize(TFile *fp) override
Definition: maxpool.cpp:31
STRING spec() const override
Definition: maxpool.h:35