jaxsnn.event.modules.hx.input.InputNeuron
-
class
jaxsnn.event.modules.hx.input.InputNeuron(layer_idx: int, size: int, n_events: int, experiment: jaxsnn.event.hardware.experiment.Experiment, chip_coordinate: Optional[pyhalco_hicann_dls_vx_v3.DLSGlobal, None] = None, enable_spike_loopback: bool = False) Bases:
jaxsnn.event.hardware.modules.population.InputPopulationSpike source generating spikes at the times [ms] given in the spike_times array.
-
__init__(layer_idx: int, size: int, n_events: int, experiment: jaxsnn.event.hardware.experiment.Experiment, chip_coordinate: Optional[pyhalco_hicann_dls_vx_v3.DLSGlobal, None] = None, enable_spike_loopback: bool = False)
Methods
Add the neurons events represented by this instance to grenades input generator.
set_spike_times(spike_times)Set the spike times for this neuron.
Attributes
-
get_post_processed() → Optional[jaxsnn.event.types.Spike, None]
-
get_spike_times() → None Add the neurons events represented by this instance to grenades input generator.
- Parameters
inputs – input spikes for this neuron
builder – Grenade’s input generator to append the events to.
-
set_spike_times(spike_times: jaxsnn.event.types.Spike) → None Set the spike times for this neuron.
- Parameters
spike_times – Array of spike times in s.
-