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_
int InitWeights(float range, TRand *randomizer) override
void AppendSeries(Network *src)
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
StaticShape OutputShape(const StaticShape &input_shape) const override
void SplitAt(int last_start, Series **start, Series **end)
PointerVector< Network > stack_
STRING spec() const override
void CacheXScaleFactor(int factor) override
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
const STRING & name() const
int XScaleFactor() const override
virtual ~Series()=default
int RemapOutputs(int old_no, const std::vector< int > &code_map) override
bool SetupNeedsBackprop(bool needs_backprop) override
Series(const STRING &name)