Go to the documentation of this file.
20 #ifndef TESSERACT_LSTM_PLUMBING_H_
21 #define TESSERACT_LSTM_PLUMBING_H_
39 return "Sub-classes of Plumbing must implement spec()!";
62 int RemapOutputs(
int old_no,
const std::vector<int>& code_map)
override;
126 void Update(
float learning_rate,
float momentum,
float adam_beta,
127 int num_samples)
override;
132 double* changed)
const override;
144 #endif // TESSERACT_LSTM_PLUMBING_H_
void CountAlternators(const Network &other, double *same, double *changed) const override
~Plumbing() override=default
int RemapOutputs(int old_no, const std::vector< int > &code_map) override
void EnumerateLayers(const STRING *prefix, GenericVector< STRING > *layers) const
PointerVector< Network > stack_
float LayerLearningRate(const char *id) const
void SetEnableTraining(TrainingState state) override
void Update(float learning_rate, float momentum, float adam_beta, int num_samples) override
const STRING & name() const
STRING spec() const override
void ScaleLayerLearningRate(const char *id, double factor)
float * LayerLearningRatePtr(const char *id) const
int XScaleFactor() const override
bool DeSerialize(TFile *fp) override
void ConvertToInt() override
bool IsPlumbingType() const override
Network * GetLayer(const char *id) const
bool SetupNeedsBackprop(bool needs_backprop) override
const PointerVector< Network > & stack() const
void SetRandomizer(TRand *randomizer) override
virtual void AddToStack(Network *network)
GenericVector< float > learning_rates_
StaticShape InputShape() const override
bool Serialize(TFile *fp) const override
void CacheXScaleFactor(int factor) override
Plumbing(const STRING &name)
void SetNetworkFlags(uint32_t flags) override
void DebugWeights() override
int InitWeights(float range, TRand *randomizer) override