GClasses
|
Context class for LSTM blocks.
#include <GBlock.h>
Public Member Functions | |
GContextLSTM (GRand &rand, GBlockLSTM &block) | |
virtual void | backProp (GContextRecurrentInstance *pPrev, const GVec &outBlame, GVec &inBlame) override |
virtual void | clearBlame () override |
virtual void | forwardProp (GContextRecurrentInstance *pPrev, const GVec &input, GVec &output) override |
virtual void | resetState () override |
Resets the state of all recurrent blocks. (This is called whenever a recurrent neural network begins with a new sequence, either for training or testing.) More... | |
virtual void | updateGradient (GContextRecurrentInstance *prev, const GVec &input, GVec &gradient) const override |
Public Member Functions inherited from GClasses::GContextRecurrentInstance | |
GContextRecurrentInstance (GRand &rand) | |
virtual | ~GContextRecurrentInstance () |
Public Member Functions inherited from GClasses::GContext | |
GContext (GRand &rand) | |
virtual | ~GContext () |
Public Attributes | |
GVec | m_blamec |
GVec | m_blamef |
GVec | m_blameh |
GVec | m_blameo |
GVec | m_blamet |
const GBlockLSTM & | m_block |
GVec | m_buf1 |
GVec | m_buf2 |
GVec | m_c |
GVec | m_f |
GVec | m_h |
GVec | m_o |
GVec | m_t |
Public Attributes inherited from GClasses::GContext | |
GRand & | m_rand |
GClasses::GContextLSTM::GContextLSTM | ( | GRand & | rand, |
GBlockLSTM & | block | ||
) |
|
overridevirtual |
Implements GClasses::GContextRecurrentInstance.
|
overridevirtual |
Implements GClasses::GContextRecurrentInstance.
|
overridevirtual |
Implements GClasses::GContextRecurrentInstance.
|
overridevirtual |
Resets the state of all recurrent blocks. (This is called whenever a recurrent neural network begins with a new sequence, either for training or testing.)
Implements GClasses::GContext.
|
overridevirtual |
Implements GClasses::GContextRecurrentInstance.
GVec GClasses::GContextLSTM::m_blamec |
GVec GClasses::GContextLSTM::m_blamef |
GVec GClasses::GContextLSTM::m_blameh |
GVec GClasses::GContextLSTM::m_blameo |
GVec GClasses::GContextLSTM::m_blamet |
const GBlockLSTM& GClasses::GContextLSTM::m_block |
GVec GClasses::GContextLSTM::m_buf1 |
GVec GClasses::GContextLSTM::m_buf2 |
GVec GClasses::GContextLSTM::m_c |
GVec GClasses::GContextLSTM::m_f |
GVec GClasses::GContextLSTM::m_h |
GVec GClasses::GContextLSTM::m_o |
GVec GClasses::GContextLSTM::m_t |