20 #ifndef TESSERACT_LSTM_PLUMBING_H_ 21 #define TESSERACT_LSTM_PLUMBING_H_ 39 return "Sub-classes of Plumbing must implement spec()!";
124 virtual void Update(
float learning_rate,
float momentum,
int num_samples);
129 double* changed)
const;
141 #endif // TESSERACT_LSTM_PLUMBING_H_ const PointerVector< Network > & stack() const
float * LayerLearningRatePtr(const char *id) const
virtual void Update(float learning_rate, float momentum, int num_samples)
Plumbing(const STRING &name)
virtual int InitWeights(float range, TRand *randomizer)
Network * GetLayer(const char *id) const
virtual void SetNetworkFlags(uinT32 flags)
virtual void CacheXScaleFactor(int factor)
virtual STRING spec() const
virtual bool DeSerialize(TFile *fp)
virtual void SetEnableTraining(TrainingState state)
virtual bool SetupNeedsBackprop(bool needs_backprop)
PointerVector< Network > stack_
virtual int XScaleFactor() const
virtual void SetRandomizer(TRand *randomizer)
virtual void ConvertToInt()
virtual StaticShape InputShape() const
virtual bool IsPlumbingType() const
void ScaleLayerLearningRate(const char *id, double factor)
virtual void DebugWeights()
const STRING & name() const
GenericVector< float > learning_rates_
void EnumerateLayers(const STRING *prefix, GenericVector< STRING > *layers) const
virtual void CountAlternators(const Network &other, double *same, double *changed) const
virtual void AddToStack(Network *network)
virtual bool Serialize(TFile *fp) const
float LayerLearningRate(const char *id) const