tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
19 #ifndef TESSERACT_LSTM_SERIES_H_
20 #define TESSERACT_LSTM_SERIES_H_
39 for (
int i = 0; i <
stack_.size(); ++i)
51 int RemapOutputs(
int old_no,
const std::vector<int>& code_map)
override;
93 #endif // TESSERACT_LSTM_SERIES_H_
void SplitAt(int last_start, Series **start, Series **end)
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
int XScaleFactor() const override
PointerVector< Network > stack_
Series(const STRING &name)
StaticShape OutputShape(const StaticShape &input_shape) const override
int InitWeights(float range, TRand *randomizer) override
STRING spec() const override
void CacheXScaleFactor(int factor) override
void AppendSeries(Network *src)
const STRING & name() const
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
int RemapOutputs(int old_no, const std::vector< int > &code_map) override
~Series() override=default
bool SetupNeedsBackprop(bool needs_backprop) override