ONE - On-device Neural Engine
|
#include <TrainableFnSequence.h>
Public Member Functions | |
void | forward (bool training) |
void | backward (uint32_t training_step, bool weight_update_enabled) |
void | append (std::unique_ptr< ITrainableFunction > &&fn) |
void | append (std::unique_ptr< IGradientApplier > &&applier) |
void | iterate (const std::function< void(ITrainableFunction &)> &fn) |
Data Fields | |
std::vector< std::unique_ptr< ITrainableFunction > > | _functions |
std::vector< std::unique_ptr< IGradientApplier > > | _appliers |
Definition at line 33 of file TrainableFnSequence.h.
void onert::exec::train::TrainableFnSequence::append | ( | std::unique_ptr< IGradientApplier > && | applier | ) |
Definition at line 54 of file TrainableFnSequence.cc.
References _appliers.
void onert::exec::train::TrainableFnSequence::append | ( | std::unique_ptr< ITrainableFunction > && | fn | ) |
Definition at line 49 of file TrainableFnSequence.cc.
References _functions.
void onert::exec::train::TrainableFnSequence::backward | ( | uint32_t | training_step, |
bool | weight_update_enabled | ||
) |
Definition at line 34 of file TrainableFnSequence.cc.
References _appliers, and _functions.
void onert::exec::train::TrainableFnSequence::forward | ( | bool | training | ) |
Definition at line 26 of file TrainableFnSequence.cc.
References _functions.
void onert::exec::train::TrainableFnSequence::iterate | ( | const std::function< void(ITrainableFunction &)> & | fn | ) |
Definition at line 59 of file TrainableFnSequence.cc.
References _functions.
std::vector<std::unique_ptr<IGradientApplier> > onert::exec::train::TrainableFnSequence::_appliers |
Definition at line 46 of file TrainableFnSequence.h.
Referenced by append(), and backward().
std::vector<std::unique_ptr<ITrainableFunction> > onert::exec::train::TrainableFnSequence::_functions |
Definition at line 45 of file TrainableFnSequence.h.
Referenced by append(), backward(), forward(), and iterate().