25 :
Reconfig(name, ni, x_scale, y_scale) {
48 int out_t = dest_index.
t();
54 int* max_line = maxes_[out_t];
55 int in_t = src_index.t();
57 for (
int i = 0; i <
ni_; ++i) {
68 }
while (dest_index.Increment());
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
void MaxpoolBackward(const NetworkIO &fwd, const GENERIC_2D_ARRAY< int > &maxes)
bool AddOffset(int offset, FlexDimensions dimension)
Maxpool(const STRING &name, int ni, int x_scale, int y_scale)
void CopyTimeStepFrom(int dest_t, const NetworkIO &src, int src_t)
void MaxpoolTimeStep(int dest_t, const NetworkIO &src, int src_t, int *max_line)
void ResizeNoInit(int size1, int size2, int pad=0)
void ResizeScaled(const NetworkIO &src, int x_scale, int y_scale, int num_features)
bool DeSerialize(TFile *fp) override
const StrideMap & stride_map() const
bool DeSerialize(TFile *fp) override
void ResizeToMap(bool int_mode, const StrideMap &stride_map, int num_features)
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override