jaxsnn.event.modules.hx.lif.neuron.Experiment
-
class
jaxsnn.event.modules.hx.lif.neuron.Experiment(topology: Topology, *args, inter_batch_entry_wait: int = 0, **kwargs) Bases:
hxtorch.core.experiment.BaseExperimentHardware experiment class for executing experiment on BrainScaleS-2
-
__init__(topology: Topology, *args, inter_batch_entry_wait: int = 0, **kwargs) → None Initialize the hardware experiment.
- Parameters
topology – The network topology defining the structure and connections.
inter_batch_entry_wait – Wait time between batch entries in FPGA cycles.
args – Additional positional arguments passed to BaseExperiment.
kwargs – Additional keyword arguments passed to BaseExperiment.
Methods
__init__(topology, *args[, …])Initialize the hardware experiment.
expected_return_type(input_spikes)run(input_spikes, parameters)Executes the experiment in mock-mode or on hardware using the information added to the experiment for a time given by runtime and returns a dict of hardware data represented as PyTorch data types.
Attributes
Returns the batch size of the experiment.
-
property
batch_size Returns the batch size of the experiment.
-
expected_return_type(input_spikes: IOData) → IOData
-
run(input_spikes: IOData, parameters: Parameters) → IOData Executes the experiment in mock-mode or on hardware using the information added to the experiment for a time given by runtime and returns a dict of hardware data represented as PyTorch data types.
- Parameters
runtime – The runtime of the experiment on hardware in µs.
- Returns
Returns the data map as dict, where the keys are the population descriptors and values are tuples of values returned by the corresponding module’s post_process method.
-