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 ConvertToInt() override
const PointerVector< Network > & stack() const
void SetRandomizer(TRand *randomizer) override
Plumbing(const STRING &name)
GenericVector< float > learning_rates_
int RemapOutputs(int old_no, const std::vector< int > &code_map) override
void CacheXScaleFactor(int factor) override
int InitWeights(float range, TRand *randomizer) override
virtual ~Plumbing()=default
float * LayerLearningRatePtr(const char *id) const
PointerVector< Network > stack_
virtual void AddToStack(Network *network)
bool IsPlumbingType() const override
Network * GetLayer(const char *id) const
bool Serialize(TFile *fp) const override
int XScaleFactor() const override
void SetEnableTraining(TrainingState state) override
void DebugWeights() override
const STRING & name() const
void CountAlternators(const Network &other, double *same, double *changed) const override
bool SetupNeedsBackprop(bool needs_backprop) override
void ScaleLayerLearningRate(const char *id, double factor)
StaticShape InputShape() const override
float LayerLearningRate(const char *id) const
void Update(float learning_rate, float momentum, float adam_beta, int num_samples) override
STRING spec() const override
bool DeSerialize(TFile *fp) override
void EnumerateLayers(const STRING *prefix, GenericVector< STRING > *layers) const
void SetNetworkFlags(uint32_t flags) override