GClasses
GClasses::GContextRecurrentInstance Class Referenceabstract

Detailed Description

A single instance of a recurrent context that has been unfolded through time.

#include <GBlock.h>

Inheritance diagram for GClasses::GContextRecurrentInstance:
GClasses::GContext GClasses::GContextGRU GClasses::GContextLSTM

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
GRandm_rand
 

Constructor & Destructor Documentation

GClasses::GContextRecurrentInstance::GContextRecurrentInstance ( GRand rand)
inline
virtual GClasses::GContextRecurrentInstance::~GContextRecurrentInstance ( )
inlinevirtual

Member Function Documentation

virtual void GClasses::GContextRecurrentInstance::backProp ( GContextRecurrentInstance pPrev,
const GVec outBlame,
GVec inBlame 
)
pure virtual
virtual void GClasses::GContextRecurrentInstance::clearBlame ( )
pure virtual
virtual void GClasses::GContextRecurrentInstance::forwardProp ( GContextRecurrentInstance pPrev,
const GVec input,
GVec output 
)
pure virtual
virtual void GClasses::GContextRecurrentInstance::updateGradient ( GContextRecurrentInstance prev,
const GVec input,
GVec gradient 
) const
pure virtual