|
Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|


Public Member Functions | |
| virtual void | setupEdges () override |
| Setup the internal structure of the class (allocate memories and initialize them). | |
| virtual void | resetEdge (BGSIZE iEdg, BGFLOAT deltaT) |
| int | edgSign (const edgeType type) |
| virtual void | printSynapsesProps () const |
| Prints SynapsesProps data to console. | |
| template<class Archive > | |
| void | serialize (Archive &archive) |
| Cereal serialization method. | |
| virtual void | outputWeights (int epochNum)=0 |
| Output weights and srcIndex to xml. | |
Public Member Functions inherited from AllEdges | |
| AllEdges (int numVertices, int maxEdges) | |
| virtual void | loadParameters () |
| virtual void | printParameters () const |
| virtual BGSIZE | addEdge (edgeType type, int srcVertex, int destVertex, BGFLOAT deltaT) |
| virtual void | createEdge (BGSIZE iEdg, int srcVertex, int destVertex, BGFLOAT deltaT, edgeType type)=0 |
| 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 | advanceEdge (BGSIZE iEdg, AllVertices &vertices)=0 |
| virtual void | eraseEdge (int vertexIndex, BGSIZE iEdg) |
Public Attributes | |
| vector< BGFLOAT > | psr_ |
Public Attributes inherited from AllEdges | |
| vector< int > | sourceVertexIndex_ |
| The location of the edge. | |
| vector< int > | destVertexIndex_ |
| vector< BGFLOAT > | W_ |
| The weight (scaling factor, strength, maximal amplitude) of the edge. | |
| vector< edgeType > | type_ |
| edge 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_ |
Static Public Attributes | |
| static constexpr BGFLOAT | SYNAPSE_STRENGTH_ADJUSTMENT = 1.0e-8 |
| The factor to adjust overlapping area to edge weight. | |
Protected Member Functions | |
| virtual void | setupEdges (int numVertices, int maxEdges) override |
| Setup the internal structure of the class (allocate memories and initialize them). | |
| virtual void | readEdge (istream &input, BGSIZE iEdg) override |
| virtual void | writeEdge (ostream &output, BGSIZE iEdg) const override |
Protected Member Functions inherited from AllEdges | |
| edgeType | edgeOrdinalToType (int typeOrdinal) |
Additional Inherited Members | |
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_ |
Definition at line 50 of file AllNeuroEdges.h.
| int AllNeuroEdges::edgSign | ( | const edgeType | type | ) |
Get the sign of the edgeType.
| type | edgeType I to I, I to E, E to I, or E to E |
Definition at line 83 of file AllNeuroEdges.cpp.
|
pure virtual |
Output weights and srcIndex to xml.
Implemented in AllSpikingSynapses.
|
virtual |
Prints SynapsesProps data to console.
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 102 of file AllNeuroEdges.cpp.
|
overrideprotectedvirtual |
Sets the data for Synapse to input's data.
| input | istream to read from. |
| iEdg | Index of the edge to set. |
Reimplemented from AllEdges.
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 44 of file AllNeuroEdges.cpp.
|
virtual |
Reset time varying state vars and recompute decay.
| iEdg | Index of the edge to set. |
| deltaT | Inner simulation step duration |
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 35 of file AllNeuroEdges.cpp.
| void AllNeuroEdges::serialize | ( | Archive & | archive | ) |
Cereal serialization method.
Definition at line 128 of file AllNeuroEdges.h.
|
overridevirtual |
Setup the internal structure of the class (allocate memories and initialize them).
Reimplemented from AllEdges.
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 12 of file AllNeuroEdges.cpp.
|
overrideprotectedvirtual |
Setup the internal structure of the class (allocate memories and initialize them).
Setup the internal structure of the class (allocate memories and initialize them).
| numVertices | Total number of vertices in the network. |
| maxEdges | Maximum number of edges per vertex. |
Reimplemented from AllEdges.
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 20 of file AllNeuroEdges.cpp.
|
overrideprotectedvirtual |
Write the edge data to the stream.
| output | stream to print out to. |
| iEdg | Index of the edge to print out. |
Reimplemented from AllEdges.
Reimplemented in AllDSSynapses, AllDynamicSTDPSynapses, AllSpikingSynapses, and AllSTDPSynapses.
Definition at line 69 of file AllNeuroEdges.cpp.
| vector<BGFLOAT> AllNeuroEdges::psr_ |
The post-synaptic response is the result of whatever computation is going on in the edge.
Definition at line 114 of file AllNeuroEdges.h.
|
staticconstexpr |
The factor to adjust overlapping area to edge weight.
Definition at line 111 of file AllNeuroEdges.h.