tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
25 x_scale_(x_scale), y_scale_(y_scale) {
73 int out_t = dest_index.
t();
83 input, src_xy.
t(), 0);
87 }
while (dest_index.Increment());
98 int in_t = src_index.
t();
104 for (
int x = 0; x <
x_scale_; ++x) {
105 for (
int y = 0; y <
y_scale_; ++y) {
113 }
while (src_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
Reconfig(const STRING &name, int ni, int x_scale, int y_scale)
void set_width(int value)
void set_height(int value)
bool AddOffset(int offset, FlexDimensions dimension)
bool DeSerialize(char *data, size_t count=1)
bool Serialize(const char *data, size_t count=1)
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
StaticShape OutputShape(const StaticShape &input_shape) const override
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
bool Serialize(TFile *fp) const override
void CopyTimeStepGeneral(int dest_t, int dest_offset, int num_features, const NetworkIO &src, int src_t, int src_offset)
void ResizeToMap(bool int_mode, const StrideMap &stride_map, int num_features)
virtual bool Serialize(TFile *fp) const
int XScaleFactor() const override
void set_depth(int value)