tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
18 #ifndef TESSERACT_LSTM_INPUT_H_
19 #define TESSERACT_LSTM_INPUT_H_
31 ~Input()
override =
default;
83 const Network* network,
int min_width,
84 TRand* randomizer,
float* image_scale);
95 void DebugWeights()
override {
96 tprintf(
"Must override Network::DebugWeights for type %d\n",
type_);
107 #endif // TESSERACT_LSTM_INPUT_H_
StaticShape InputShape() const override
void add_str_int(const char *str, int number)
bool DeSerialize(TFile *fp) override
static void PreparePixInput(const StaticShape &shape, const Pix *pix, TRand *randomizer, NetworkIO *input)
StaticShape OutputShape(const StaticShape &input_shape) const override
static Pix * PrepareLSTMInputs(const ImageData &image_data, const Network *network, int min_width, TRand *randomizer, float *image_scale)
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
int XScaleFactor() const override
STRING spec() const override
Input(const STRING &name, int ni, int no)
const STRING & name() const
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
void CacheXScaleFactor(int factor) override
bool Serialize(TFile *fp) const override
DLLSYM void tprintf(const char *format,...)
~Input() override=default