Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|
Public Member Functions | |
virtual void | setupVertices () override |
Setup the internal structure of the class (allocate memories). | |
void | clearSpikeCounts () |
Clear the spike counts out of all Neurons. | |
virtual void | registerHistoryVariables () override |
template<class Archive > | |
void | serialize (Archive &archive) |
Cereal serialization method. | |
virtual void | advanceVertices (AllEdges &synapses, const EdgeIndexMap &edgeIndexMap) |
uint64_t | getSpikeHistory (int index, int offIndex) |
![]() | |
virtual void | printParameters () const |
virtual void | loadEpochInputs (uint64_t currentStep, uint64_t endStep) |
virtual void | loadParameters ()=0 |
virtual void | createAllVertices (Layout &layout)=0 |
virtual string | toString (int i) const =0 |
template<class Archive > | |
void | serialize (Archive &archive) |
Cereal serialization method. | |
Public Attributes | |
vector< bool > | hasFired_ |
The booleans which track whether the neuron has fired. | |
vector< EventBuffer > | vertexEvents_ |
Holds at least one epoch's worth of event times for every vertex. | |
![]() | |
vector< BGFLOAT > | summationPoints_ |
Protected Member Functions | |
virtual void | advanceNeuron (int index)=0 |
virtual void | fire (int index) |
Protected Attributes | |
bool | fAllowBackPropagation_ |
![]() | |
int | size_ |
Total number of vertices. | |
log4cplus::Logger | fileLogger_ |
log4cplus::Logger | vertexLogger_ |
Definition at line 37 of file AllSpikingNeurons.h.
|
protectedpure virtual |
Helper for advanceNeuron. Updates state of a single neuron.
index | Index of the neuron to update. |
Implemented in AllIZHNeurons, and AllLIFNeurons.
|
virtual |
Update internal state of the indexed Neuron (called by every simulation step). Notify outgoing synapses if neuron has fired.
synapses | The Synapse list to search from. |
edgeIndexMap | Reference to the EdgeIndexMap. |
Implements AllVertices.
Definition at line 65 of file AllSpikingNeurons.cpp.
void AllSpikingNeurons::clearSpikeCounts | ( | ) |
Clear the spike counts out of all Neurons.
Definition at line 48 of file AllSpikingNeurons.cpp.
|
protectedvirtual |
Initiates a firing of a neuron to connected neurons
index | Index of the neuron to fire. |
Fire the selected Neuron and calculate the result.
index | Index of the Neuron to update. |
Reimplemented in AllIZHNeurons, and AllLIFNeurons.
Definition at line 121 of file AllSpikingNeurons.cpp.
uint64_t AllSpikingNeurons::getSpikeHistory | ( | int | index, |
int | offIndex ) |
Get the spike history of neuron[index] at the location offIndex. More specifically, retrieves the global simulation time step for the spike in question from the spike history record.
index | Index of the neuron to get spike history. |
offIndex | Offset of the history buffer to get from. |
Get the spike history of neuron[index] at the location offIndex. More specifically, retrieves the global simulation time step for the spike in question from the spike history record.
index | Index of the neuron to get spike history. |
offIndex | Offset of the history buffer to get from. This indicates how many spikes in the past we are looking, so it must be a negative number (i.e., it is relative to the "current time", i.e., one location past the most recent spike). So, the most recent spike is offIndex = -1 |
Definition at line 137 of file AllSpikingNeurons.cpp.
|
overridevirtual |
Helper function for recorder to register spike history variables for all neurons. Option 1: Register neuron information in vertexEvents_ one by one. Option 2: Register a vector of EventBuffer variables.
Register spike history variables for all neurons. Option 1: Register neuron information in vertexEvents_ one by one. Option 2: Register a vector of EventBuffer variables.
Implements AllVertices.
Definition at line 28 of file AllSpikingNeurons.cpp.
void AllSpikingNeurons::serialize | ( | Archive & | archive | ) |
Cereal serialization method.
Definition at line 144 of file AllSpikingNeurons.h.
|
overridevirtual |
Setup the internal structure of the class (allocate memories).
Setup the internal structure of the class. Allocate memories to store all neurons' state.
Reimplemented from AllVertices.
Reimplemented in AllIFNeurons, and AllIZHNeurons.
Definition at line 14 of file AllSpikingNeurons.cpp.
|
protected |
True if back propagation is allowed. (parameters used for advanceVerticesDevice.)
Definition at line 119 of file AllSpikingNeurons.h.
vector<bool> AllSpikingNeurons::hasFired_ |
The booleans which track whether the neuron has fired.
Definition at line 111 of file AllSpikingNeurons.h.
vector<EventBuffer> AllSpikingNeurons::vertexEvents_ |
Holds at least one epoch's worth of event times for every vertex.
Definition at line 114 of file AllSpikingNeurons.h.