Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|
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. | |
![]() | |
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) |
![]() | |
int | edgSign (const edgeType type) |
template<class Archive > | |
void | serialize (Archive &archive) |
Cereal serialization method. | |
![]() | |
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 AllEdges * | Create () |
![]() | |
static AllEdges * | Create () |
Public Attributes | |
vector< uint64_t > | lastSpike_ |
The time of the last spike. | |
vector< BGFLOAT > | r_ |
The time varying state variable ![]() | |
vector< BGFLOAT > | u_ |
The time varying state variable ![]() | |
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]. | |
![]() | |
vector< BGFLOAT > | decay_ |
The decay for the psr. | |
vector< BGFLOAT > | tau_ |
The synaptic time constant ![]() | |
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. | |
![]() | |
vector< BGFLOAT > | psr_ |
![]() | |
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 |
![]() | |
virtual void | initSpikeQueue (BGSIZE iEdg) |
bool | updateDecay (BGSIZE iEdg, BGFLOAT deltaT) |
defined(USE_GPU) | |
bool | isSpikeQueue (BGSIZE iEdg) |
![]() | |
![]() | |
edgeType | edgeOrdinalToType (int typeOrdinal) |
Additional Inherited Members | |
![]() | |
static constexpr BGFLOAT | SYNAPSE_STRENGTH_ADJUSTMENT = 1.0e-8 |
The factor to adjust overlapping area to edge weight. | |
![]() | |
log4cplus::Logger | fileLogger_ |
Loggers used to print to using log4cplus logging macros, prints to Results/Debug/logging.txt. | |
log4cplus::Logger | edgeLogger_ |
Definition at line 59 of file AllDSSynapses.h.
AllDSSynapses::AllDSSynapses | ( | int | numVertices, |
int | maxEdges ) |
Definition at line 11 of file AllDSSynapses.cpp.
|
overrideprotectedvirtual |
Calculate the post synapse response after a spike.
iEdg | Index of the synapse to set. |
deltaT | Inner simulation step duration. |
Reimplemented from AllSpikingSynapses.
Definition at line 162 of file AllDSSynapses.cpp.
|
inlinestatic |
Definition at line 67 of file AllDSSynapses.h.
|
overridevirtual |
Create a Synapse and connect it to the model.
iEdg | Index of the synapse to set. |
srcVertex | Coordinates of the source Neuron. |
destVertex | Coordinates of the destination Neuron. |
deltaT | Inner simulation step duration. |
type | Type of the Synapse to create. |
Reimplemented from AllSpikingSynapses.
Definition at line 115 of file AllDSSynapses.cpp.
|
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.
|
overridevirtual |
Prints SynapsesProps data to console.
Reimplemented from AllSpikingSynapses.
Definition at line 187 of file AllDSSynapses.cpp.
|
overrideprotectedvirtual |
Sets the data for Synapse to input's data.
input | istream to read from. |
iEdg | Index of the synapse to set. |
Reimplemented from AllSpikingSynapses.
Definition at line 60 of file AllDSSynapses.cpp.
|
overridevirtual |
Reset time varying state vars and recompute decay.
iEdg | Index of the synapse to set. |
deltaT | Inner simulation step duration |
Reimplemented from AllSpikingSynapses.
Definition at line 99 of file AllDSSynapses.cpp.
void AllDSSynapses::serialize | ( | Archive & | archive | ) |
Cereal serialization method.
Definition at line 261 of file AllDSSynapses.h.
|
overridevirtual |
Setup the internal structure of the class (allocate memories and initialize them).
Reimplemented from AllSpikingSynapses.
Definition at line 18 of file AllDSSynapses.cpp.
|
overrideprotectedvirtual |
Setup the internal structure of the class (allocate memories and initialize them).
numVertices | Total number of vertices in the network. |
maxEdges | Maximum number of synapses per neuron. |
Reimplemented from AllSpikingSynapses.
Definition at line 28 of file AllDSSynapses.cpp.
|
overrideprotectedvirtual |
Write the synapse data to the stream.
output | stream to print out to. |
iEdg | Index of the synapse to print out. |
Reimplemented from AllSpikingSynapses.
Definition at line 83 of file AllDSSynapses.cpp.
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.
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.
vector<uint64_t> AllDSSynapses::lastSpike_ |
The time of the last spike.
Definition at line 218 of file AllDSSynapses.h.
vector<BGFLOAT> AllDSSynapses::r_ |
The time varying state variable
Definition at line 221 of file AllDSSynapses.h.
vector<BGFLOAT> AllDSSynapses::U_ |
The use parameter of the dynamic synapse [range=(1e-5,1)].
Definition at line 230 of file AllDSSynapses.h.
vector<BGFLOAT> AllDSSynapses::u_ |
The time varying state variable
Definition at line 224 of file AllDSSynapses.h.