26 x_scale_(x_scale), y_scale_(y_scale) {
74 int out_t = dest_index.
t();
84 input, src_xy.
t(), 0);
88 }
while (dest_index.Increment());
99 int in_t = src_index.
t();
105 for (
int x = 0; x <
x_scale_; ++x) {
106 for (
int y = 0; y <
y_scale_; ++y) {
114 }
while (src_index.Increment());
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
bool AddOffset(int offset, FlexDimensions dimension)
bool DeSerialize(char *data, size_t count=1)
int XScaleFactor() const override
void ResizeScaled(const NetworkIO &src, int x_scale, int y_scale, int num_features)
void set_width(int value)
bool DeSerialize(TFile *fp) override
virtual bool Serialize(TFile *fp) const
bool Serialize(const char *data, size_t count=1)
const StrideMap & stride_map() const
bool Serialize(TFile *fp) const override
StaticShape OutputShape(const StaticShape &input_shape) const override
void CopyTimeStepGeneral(int dest_t, int dest_offset, int num_features, const NetworkIO &src, int src_t, int src_offset)
void set_depth(int value)
void set_height(int value)
void ResizeToMap(bool int_mode, const StrideMap &stride_map, int num_features)
Reconfig(const STRING &name, int ni, int x_scale, int y_scale)
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override