GClasses
GClasses::GContextLayer Class Reference

Detailed Description

Contains the buffers that a thread needs to train or use a GLayer. Each thread should use a separate GContextLayer object. Call GLayer::newContext to obtain a new GContextLayer object.

#include <GNeuralNet.h>

Inheritance diagram for GClasses::GContextLayer:
GClasses::GContext

Public Member Functions

 ~GContextLayer ()
 
virtual void resetState () override
 See the comment for GContext::resetState. More...
 
- Public Member Functions inherited from GClasses::GContext
 GContext (GRand &rand)
 
virtual ~GContext ()
 

Public Attributes

GVec m_activation
 
GVec m_blame
 
std::vector< GContextNeuralNet * > m_components
 
const GLayerm_layer
 
std::vector< GContextRecurrent * > m_recurrents
 
- Public Attributes inherited from GClasses::GContext
GRandm_rand
 

Protected Member Functions

 GContextLayer (GRand &rand, const GLayer &layer)
 

Friends

class GLayer
 

Constructor & Destructor Documentation

GClasses::GContextLayer::GContextLayer ( GRand rand,
const GLayer layer 
)
protected
GClasses::GContextLayer::~GContextLayer ( )

Member Function Documentation

virtual void GClasses::GContextLayer::resetState ( )
overridevirtual

See the comment for GContext::resetState.

Implements GClasses::GContext.

Friends And Related Function Documentation

friend class GLayer
friend

Member Data Documentation

GVec GClasses::GContextLayer::m_activation
GVec GClasses::GContextLayer::m_blame
std::vector<GContextNeuralNet*> GClasses::GContextLayer::m_components
const GLayer& GClasses::GContextLayer::m_layer
std::vector<GContextRecurrent*> GClasses::GContextLayer::m_recurrents