hxtorch.spiking
Modules
Definition of ExecutionInstance, wrapping grenade.common.ExecutionInstanceID, and providing functionality for chip instance configuration |
|
Defining basic types to create hw-executable instances |
|
Defining tensor handles able to hold references to tensors for lazy assignment after hardware data acquisition |
|
User defined neuron morphologies. |
|
Defining neuron placement allocator |
|
Hardware observables object |
|
Generic parameter object holding hardware configurable neuron parameters. |
|
|
Execute the given experiment. |
Classes
|
Layer of neurons with configurable dynamics up to adaptive exponential leaky integrate-and-fire complexity. |
|
Batch dropout layer |
|
Configuration for the conversion of NIRGraph to hxtorch SNN. |
|
|
|
Experiment class for describing experiments on hardware |
|
|
|
PyTorch module supplying basic functionality for elements of SNNs that do have a representation on hardware |
|
Class to wrap HXModules |
|
|
|
|
|
Factory for classes which are to be used as custom handles for observable data, depending on the specific observables a module deals with. |
|
Spike source generating spikes at the times [ms] given in the spike_times array. |
|
Layer of leaky integrator neurons |
|
Layer of leaky integrate-and-fire neurons. |
alias of |
|
alias of |
|
|
|
|
|
|
Neuron layer with exponential Euler integration scheme. |
|
Neuron layer with exponential Euler integration scheme. |
|
Sparse synapse layer |
|
Synapse layer |
alias of |
|
alias of |
Functions
-
hxtorch.spiking.from_nir(graph: nir.ir.graph.NIRGraph, cfg: hxtorch.spiking.utils.from_nir.ConversionConfig = None) → torch.nn.modules.module.Module Converts a NIRGraph to an hxtorch module.
- Limitations
Only NIRGraphs with exactly one Input and one Output node
Only Linear, CubaLI, and CubaLIF nodes are supported
-
hxtorch.spiking.run(experiment: hxtorch.spiking.experiment.Experiment, runtime: Optional[int, None]) → Optional[hxtorch.spiking.execution_info.ExecutionInfo, None] Execute the given experiment.
TODO: Why is this a standalone function?
- Parameters
experiment – The experiment representing the computational graph to be executed on hardware and/or in software.
runtime – Only relevant for hardware experiments. Indicates the runtime resolved with experiment.dt.
-
hxtorch.spiking.to_nir(snn: hxtorch.spiking.utils.to_nir.SNN, input_sample) → nir.ir.graph.NIRGraph Convert a hxtorch SNN to a NIR graph.
- Parameters
snn – The hxtorch SNN to convert, where snn.exp is the experiment object. Furthermore the SNN must use modules that are convertible to NIR (e.g. Synapse, AELIF).
input_sample – A single input sample to the SNN.