19#ifndef TESSERACT_LSTM_RECONFIG_H_
20#define TESSERACT_LSTM_RECONFIG_H_
34 Reconfig(
const char *
name,
int ni,
int x_scale,
int y_scale);
41 std::string
spec()
const override {
69 void DebugWeights()
override {
70 tprintf(
"Must override Network::DebugWeights for type %d\n",
type_);
void tprintf(const char *format,...)
const std::string & name() const
bool DeSerialize(TFile *fp) override
std::string spec() const override
~Reconfig() override=default
int XScaleFactor() const override
bool Serialize(TFile *fp) const override
StaticShape OutputShape(const StaticShape &input_shape) const override
TESS_API Reconfig(const char *name, int ni, int x_scale, int y_scale)
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override