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 AppendSeries(Network *src)
Definition: series.cpp:190
StaticShape OutputShape(const StaticShape &input_shape) const override
Definition: series.cpp:35
int InitWeights(float range, TRand *randomizer) override
Definition: series.cpp:47
PointerVector< Network > stack_
Definition: plumbing.h:136
Definition: static_shape.h:38
Definition: plumbing.h:30
Definition: networkscratch.h:36
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
Definition: series.cpp:107
Definition: baseapi.cpp:94
int RemapOutputs(int old_no, const std::vector< int > &code_map) override
Definition: series.cpp:62
const STRING & name() const
Definition: network.h:138
void SplitAt(int last_start, Series **start, Series **end)
Definition: series.cpp:160
Definition: weightmatrix.h:33
bool SetupNeedsBackprop(bool needs_backprop) override
Definition: series.cpp:79
Definition: network.h:105
void CacheXScaleFactor(int factor) override
Definition: series.cpp:101
Series(const STRING &name)
Definition: series.cpp:29
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
Definition: series.cpp:129
virtual ~Series()=default
Definition: networkio.h:39
STRING spec() const override
Definition: series.h:37
int XScaleFactor() const override
Definition: series.cpp:92