tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
23 :
Reconfig(name, ni, x_scale, y_scale) {
46 int out_t = dest_index.
t();
52 int* max_line = maxes_[out_t];
53 int in_t = src_index.t();
55 for (
int i = 0; i <
ni_; ++i) {
66 }
while (dest_index.Increment());
bool DeSerialize(TFile *fp) override
void ResizeScaled(const NetworkIO &src, int x_scale, int y_scale, int num_features)
const StrideMap & stride_map() const
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
Maxpool(const STRING &name, int ni, int x_scale, int y_scale)
bool AddOffset(int offset, FlexDimensions dimension)
void ResizeNoInit(int size1, int size2, int pad=0)
void MaxpoolBackward(const NetworkIO &fwd, const GENERIC_2D_ARRAY< int > &maxes)
void CopyTimeStepFrom(int dest_t, const NetworkIO &src, int src_t)
void ResizeToMap(bool int_mode, const StrideMap &stride_map, int num_features)
void MaxpoolTimeStep(int dest_t, const NetworkIO &src, int src_t, int *max_line)
bool DeSerialize(TFile *fp) override
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override