GClasses
|
A single instance of a recurrent context that has been unfolded through time.
#include <GBlock.h>
Public Member Functions | |
GContextRecurrentInstance (GRand &rand) | |
virtual | ~GContextRecurrentInstance () |
virtual void | backProp (GContextRecurrentInstance *pPrev, const GVec &outBlame, GVec &inBlame)=0 |
virtual void | clearBlame ()=0 |
virtual void | forwardProp (GContextRecurrentInstance *pPrev, const GVec &input, GVec &output)=0 |
virtual void | updateGradient (GContextRecurrentInstance *prev, const GVec &input, GVec &gradient) const =0 |
Public Member Functions inherited from GClasses::GContext | |
GContext (GRand &rand) | |
virtual | ~GContext () |
virtual void | resetState ()=0 |
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... | |
Additional Inherited Members | |
Public Attributes inherited from GClasses::GContext | |
GRand & | m_rand |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in GClasses::GContextGRU, and GClasses::GContextLSTM.
|
pure virtual |
Implemented in GClasses::GContextGRU, and GClasses::GContextLSTM.
|
pure virtual |
Implemented in GClasses::GContextGRU, and GClasses::GContextLSTM.
|
pure virtual |
Implemented in GClasses::GContextGRU, and GClasses::GContextLSTM.