Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
AllDSSynapses Class Reference
Inheritance diagram for AllDSSynapses:
Collaboration diagram for AllDSSynapses:

Public Member Functions

 AllDSSynapses (int numVertices, int maxEdges)
 
virtual void setupEdges () override
 Setup the internal structure of the class (allocate memories and initialize them).
 
virtual void resetEdge (BGSIZE iEdg, BGFLOAT deltaT) override
 
virtual void printParameters () const override
 
virtual void createEdge (BGSIZE iEdg, int srcVertex, int destVertex, BGFLOAT deltaT, edgeType type) override
 
virtual void printSynapsesProps () const override
 Prints SynapsesProps data to console.
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
- Public Member Functions inherited from AllSpikingSynapses
 AllSpikingSynapses (int numVertices, int maxEdges)
 
virtual void loadParameters () override
 Load member variables from configuration file. Registered to OperationManager as Operation::op::loadParameters.
 
virtual bool allowBackPropagation ()
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
virtual void advanceEdge (BGSIZE iEdg, AllVertices &neurons) override
 
virtual void preSpikeHit (BGSIZE iEdg)
 
virtual void postSpikeHit (BGSIZE iEdg)
 
- Public Member Functions inherited from AllNeuroEdges
int edgSign (const edgeType type)
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
- Public Member Functions inherited from AllEdges
 AllEdges (int numVertices, int maxEdges)
 
virtual BGSIZE addEdge (edgeType type, int srcVertex, int destVertex, BGFLOAT deltaT)
 
virtual void createEdgeIndexMap (EdgeIndexMap &edgeIndexMap)
 Populate a edge index map.
 
template<class Archive >
void serialize (Archive &archive)
 Cereal serialization method.
 
virtual void advanceEdges (AllVertices &vertices, EdgeIndexMap &edgeIndexMap)
 
virtual void eraseEdge (int neuronIndex, BGSIZE iEdg)
 

Static Public Member Functions

static AllEdgesCreate ()
 
- Static Public Member Functions inherited from AllSpikingSynapses
static AllEdgesCreate ()
 

Public Attributes

vector< uint64_t > lastSpike_
 The time of the last spike.
 
vector< BGFLOAT > r_
 The time varying state variable $r$ for depression.
 
vector< BGFLOAT > u_
 The time varying state variable $u$ for facilitation.
 
vector< BGFLOAT > D_
 The time constant of the depression of the dynamic synapse [range=(0,10); units=sec].
 
vector< BGFLOAT > U_
 The use parameter of the dynamic synapse [range=(1e-5,1)].
 
vector< BGFLOAT > F_
 The time constant of the facilitation of the dynamic synapse [range=(0,10); units=sec].
 
- Public Attributes inherited from AllSpikingSynapses
vector< BGFLOAT > decay_
 The decay for the psr.
 
vector< BGFLOAT > tau_
 The synaptic time constant $\tau$ [units=sec; range=(0,100)].
 
BGFLOAT tau_II_
 
BGFLOAT tau_IE_
 
BGFLOAT tau_EI_
 
BGFLOAT tau_EE_
 
BGFLOAT delay_II_
 
BGFLOAT delay_IE_
 
BGFLOAT delay_EI_
 
BGFLOAT delay_EE_
 
vector< int > totalDelay_
 The synaptic transmission delay, descretized into time steps.
 
vector< uint32_t > delayQueue_
 Pointer to the delayed queue.
 
vector< int > delayIndex_
 
vector< int > delayQueueLength_
 Length of the delayed queue.
 
- Public Attributes inherited from AllNeuroEdges
vector< BGFLOAT > psr_
 
- Public Attributes inherited from AllEdges
vector< int > sourceVertexIndex_
 The location of the edge.
 
vector< int > destVertexIndex_
 The coordinates of the summation point.
 
vector< BGFLOAT > W_
 The weight (scaling factor, strength, maximal amplitude) of the edge.
 
vector< edgeType > type_
 Synapse type.
 
vector< unsigned char > inUse_
 The value indicating the entry in the array is in use.
 
vector< BGSIZE > edgeCounts_
 
BGSIZE totalEdgeCount_
 The total number of active edges.
 
BGSIZE maxEdgesPerVertex_
 The maximum number of edges for each vertex.
 
int countVertices_
 

Protected Member Functions

virtual void setupEdges (int numVertices, int maxEdges) override
 
virtual void readEdge (istream &input, BGSIZE iEdg) override
 
virtual void writeEdge (ostream &output, BGSIZE iEdg) const override
 
virtual void changePSR (BGSIZE iEdg, BGFLOAT deltaT) override
 
- Protected Member Functions inherited from AllSpikingSynapses
virtual void initSpikeQueue (BGSIZE iEdg)
 
bool updateDecay (BGSIZE iEdg, BGFLOAT deltaT)
 defined(USE_GPU)
 
bool isSpikeQueue (BGSIZE iEdg)
 
- Protected Member Functions inherited from AllNeuroEdges
- Protected Member Functions inherited from AllEdges
edgeType edgeOrdinalToType (int typeOrdinal)
 

Additional Inherited Members

- Static Public Attributes inherited from AllNeuroEdges
static constexpr BGFLOAT SYNAPSE_STRENGTH_ADJUSTMENT = 1.0e-8
 The factor to adjust overlapping area to edge weight.
 
- Protected Attributes inherited from AllEdges
log4cplus::Logger fileLogger_
 Loggers used to print to using log4cplus logging macros, prints to Results/Debug/logging.txt.
 
log4cplus::Logger edgeLogger_
 

Detailed Description

Definition at line 59 of file AllDSSynapses.h.

Constructor & Destructor Documentation

◆ AllDSSynapses()

AllDSSynapses::AllDSSynapses ( int numVertices,
int maxEdges )

Definition at line 11 of file AllDSSynapses.cpp.

Member Function Documentation

◆ changePSR()

void AllDSSynapses::changePSR ( BGSIZE iEdg,
BGFLOAT deltaT )
overrideprotectedvirtual

Calculate the post synapse response after a spike.

Parameters
iEdgIndex of the synapse to set.
deltaTInner simulation step duration.

Reimplemented from AllSpikingSynapses.

Definition at line 162 of file AllDSSynapses.cpp.

◆ Create()

static AllEdges * AllDSSynapses::Create ( )
inlinestatic

Definition at line 67 of file AllDSSynapses.h.

◆ createEdge()

void AllDSSynapses::createEdge ( BGSIZE iEdg,
int srcVertex,
int destVertex,
BGFLOAT deltaT,
edgeType type )
overridevirtual

Create a Synapse and connect it to the model.

Parameters
iEdgIndex of the synapse to set.
srcVertexCoordinates of the source Neuron.
destVertexCoordinates of the destination Neuron.
deltaTInner simulation step duration.
typeType of the Synapse to create.

Reimplemented from AllSpikingSynapses.

Definition at line 115 of file AllDSSynapses.cpp.

◆ printParameters()

void AllDSSynapses::printParameters ( ) const
overridevirtual

Prints out all parameters to logging file. Registered to OperationManager as Operation::printParameters

Reimplemented from AllSpikingSynapses.

Definition at line 46 of file AllDSSynapses.cpp.

◆ printSynapsesProps()

void AllDSSynapses::printSynapsesProps ( ) const
overridevirtual

Prints SynapsesProps data to console.

Reimplemented from AllSpikingSynapses.

Definition at line 187 of file AllDSSynapses.cpp.

◆ readEdge()

void AllDSSynapses::readEdge ( istream & input,
BGSIZE iEdg )
overrideprotectedvirtual

Sets the data for Synapse to input's data.

Parameters
inputistream to read from.
iEdgIndex of the synapse to set.

Reimplemented from AllSpikingSynapses.

Definition at line 60 of file AllDSSynapses.cpp.

◆ resetEdge()

void AllDSSynapses::resetEdge ( BGSIZE iEdg,
BGFLOAT deltaT )
overridevirtual

Reset time varying state vars and recompute decay.

Parameters
iEdgIndex of the synapse to set.
deltaTInner simulation step duration

Reimplemented from AllSpikingSynapses.

Definition at line 99 of file AllDSSynapses.cpp.

◆ serialize()

template<class Archive >
void AllDSSynapses::serialize ( Archive & archive)

Cereal serialization method.

Definition at line 261 of file AllDSSynapses.h.

◆ setupEdges() [1/2]

void AllDSSynapses::setupEdges ( )
overridevirtual

Setup the internal structure of the class (allocate memories and initialize them).

Reimplemented from AllSpikingSynapses.

Definition at line 18 of file AllDSSynapses.cpp.

◆ setupEdges() [2/2]

void AllDSSynapses::setupEdges ( int numVertices,
int maxEdges )
overrideprotectedvirtual

Setup the internal structure of the class (allocate memories and initialize them).

Parameters
numVerticesTotal number of vertices in the network.
maxEdgesMaximum number of synapses per neuron.

Reimplemented from AllSpikingSynapses.

Definition at line 28 of file AllDSSynapses.cpp.

◆ writeEdge()

void AllDSSynapses::writeEdge ( ostream & output,
BGSIZE iEdg ) const
overrideprotectedvirtual

Write the synapse data to the stream.

Parameters
outputstream to print out to.
iEdgIndex of the synapse to print out.

Reimplemented from AllSpikingSynapses.

Definition at line 83 of file AllDSSynapses.cpp.

Member Data Documentation

◆ D_

vector<BGFLOAT> AllDSSynapses::D_

The time constant of the depression of the dynamic synapse [range=(0,10); units=sec].

Definition at line 227 of file AllDSSynapses.h.

◆ F_

vector<BGFLOAT> AllDSSynapses::F_

The time constant of the facilitation of the dynamic synapse [range=(0,10); units=sec].

Definition at line 233 of file AllDSSynapses.h.

◆ lastSpike_

vector<uint64_t> AllDSSynapses::lastSpike_

The time of the last spike.

Definition at line 218 of file AllDSSynapses.h.

◆ r_

vector<BGFLOAT> AllDSSynapses::r_

The time varying state variable $r$ for depression.

Definition at line 221 of file AllDSSynapses.h.

◆ U_

vector<BGFLOAT> AllDSSynapses::U_

The use parameter of the dynamic synapse [range=(1e-5,1)].

Definition at line 230 of file AllDSSynapses.h.

◆ u_

vector<BGFLOAT> AllDSSynapses::u_

The time varying state variable $u$ for facilitation.

Definition at line 224 of file AllDSSynapses.h.


The documentation for this class was generated from the following files: