Class FCLayer

Inheritance Relationships

Base Type

Class Documentation

class FCLayer : public EvSpikeSim::Layer

A layer of Fully-Connected (FC) spiking neurons.

Public Functions

FCLayer(unsigned int n_inputs, unsigned int n_neurons, float tau_s, float threshold, Initializer &initializer, unsigned int buffer_size = 64u, get_traces_tau_fct traces_tau_fct = get_traces_tau, infer_kernel_fct kernel_fct = infer_kernel)

Constructs a fully-connected layer with the given parameters.

Parameters
  • n_inputs – The number of input neurons.

  • n_neurons – The number of neurons in the layer.

  • tau_s – The synaptic time constant.

  • threshold – The threshold.

  • initializer – The initializer to use to initialize weights.

  • buffer_size – The size (per neuron) of the post-synaptic spike times buffer used during inference.

  • traces_tau_fct – The function returning the time constants of synaptic and neuron eligibility traces.

  • kernel_fct – The inference kernel function.