hxtorch.spiking.functional.spike_source
Define different input spike sources
Classes
|
Unterjubel hardware observables to allow correct gradient flow |
Functions
-
hxtorch.spiking.functional.spike_source.
input_neuron
(input: torch.Tensor, hw_data: Optional[torch.Tensor] = None) → torch.Tensor Input neuron, forwards spikes without modification in non-hardware runs but injects loop-back recorded spikes if available.
- Parameters
input – Input spike tensor.
hw_data – Loop-back spikes, if available.
- Returns
Returns the input spike tensor.