|
tesseract v5.3.3.20231005
|
#include <parallel.h>
Public Member Functions | |
| TESS_API | Parallel (const char *name, NetworkType type) |
| StaticShape | OutputShape (const StaticShape &input_shape) const override |
| std::string | spec () const override |
| void | Forward (bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override |
| bool | Backward (bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override |
Public Member Functions inherited from tesseract::Plumbing | |
| Plumbing (const std::string &name) | |
| ~Plumbing () override | |
| StaticShape | InputShape () const override |
| std::string | spec () const override |
| bool | IsPlumbingType () const override |
| void | SetEnableTraining (TrainingState state) override |
| void | SetNetworkFlags (uint32_t flags) override |
| int | InitWeights (float range, TRand *randomizer) override |
| int | RemapOutputs (int old_no, const std::vector< int > &code_map) override |
| void | ConvertToInt () override |
| void | SetRandomizer (TRand *randomizer) override |
| virtual void | AddToStack (Network *network) |
| bool | SetupNeedsBackprop (bool needs_backprop) override |
| int | XScaleFactor () const override |
| void | CacheXScaleFactor (int factor) override |
| void | DebugWeights () override |
| const std::vector< Network * > & | stack () const |
| void | EnumerateLayers (const std::string *prefix, std::vector< std::string > &layers) const |
| Network * | GetLayer (const char *id) const |
| float | LayerLearningRate (const char *id) |
| void | ScaleLayerLearningRate (const char *id, double factor) |
| void | SetLayerLearningRate (const char *id, float learning_rate) |
| float * | LayerLearningRatePtr (const char *id) |
| bool | Serialize (TFile *fp) const override |
| bool | DeSerialize (TFile *fp) override |
| void | Update (float learning_rate, float momentum, float adam_beta, int num_samples) override |
| void | CountAlternators (const Network &other, TFloat *same, TFloat *changed) const override |
Public Member Functions inherited from tesseract::Network | |
| Network () | |
| Network (NetworkType type, const std::string &name, int ni, int no) | |
| virtual | ~Network ()=default |
| NetworkType | type () const |
| bool | IsTraining () const |
| bool | needs_to_backprop () const |
| int | num_weights () const |
| int | NumInputs () const |
| int | NumOutputs () const |
| virtual StaticShape | InputShape () const |
| virtual StaticShape | OutputShape (const StaticShape &input_shape) const |
| const std::string & | name () const |
| virtual std::string | spec () const |
| bool | TestFlag (NetworkFlags flag) const |
| virtual bool | IsPlumbingType () const |
| virtual void | SetEnableTraining (TrainingState state) |
| virtual void | SetNetworkFlags (uint32_t flags) |
| virtual int | InitWeights (float range, TRand *randomizer) |
| virtual int | RemapOutputs (int old_no, const std::vector< int > &code_map) |
| virtual void | ConvertToInt () |
| virtual void | SetRandomizer (TRand *randomizer) |
| virtual bool | SetupNeedsBackprop (bool needs_backprop) |
| virtual int | XScaleFactor () const |
| virtual void | CacheXScaleFactor (int factor) |
| virtual void | DebugWeights ()=0 |
| virtual bool | Serialize (TFile *fp) const |
| virtual bool | DeSerialize (TFile *fp)=0 |
| virtual void | Update (float learning_rate, float momentum, float adam_beta, int num_samples) |
| virtual void | CountAlternators (const Network &other, TFloat *same, TFloat *changed) const |
| virtual void | Forward (bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output)=0 |
| virtual bool | Backward (bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas)=0 |
| void | DisplayForward (const NetworkIO &matrix) |
| void | DisplayBackward (const NetworkIO &matrix) |
Additional Inherited Members | |
Static Public Member Functions inherited from tesseract::Network | |
| static Network * | CreateFromFile (TFile *fp) |
| static void | ClearWindow (bool tess_coords, const char *window_name, int width, int height, ScrollView **window) |
| static int | DisplayImage (Image pix, ScrollView *window) |
Protected Member Functions inherited from tesseract::Network | |
| TFloat | Random (TFloat range) |
Protected Attributes inherited from tesseract::Plumbing | |
| std::vector< Network * > | stack_ |
| std::vector< float > | learning_rates_ |
Protected Attributes inherited from tesseract::Network | |
| NetworkType | type_ |
| TrainingState | training_ |
| bool | needs_to_backprop_ |
| int32_t | network_flags_ |
| int32_t | ni_ |
| int32_t | no_ |
| int32_t | num_weights_ |
| std::string | name_ |
| ScrollView * | forward_win_ |
| ScrollView * | backward_win_ |
| TRand * | randomizer_ |
Definition at line 26 of file parallel.h.
| tesseract::Parallel::Parallel | ( | const char * | name, |
| NetworkType | type | ||
| ) |
Definition at line 34 of file parallel.cpp.
|
overridevirtual |
Implements tesseract::Network.
Definition at line 113 of file parallel.cpp.
|
overridevirtual |
Implements tesseract::Network.
Definition at line 52 of file parallel.cpp.
|
overridevirtual |
Reimplemented from tesseract::Network.
Definition at line 40 of file parallel.cpp.
|
inlineoverridevirtual |
Reimplemented from tesseract::Network.
Definition at line 36 of file parallel.h.