norse.torch.module.test.test_lif module

class norse.torch.module.test.test_lif.SNNetwork[source]

Bases: torch.nn.modules.module.Module

Initializes internal Module state, shared by both nn.Module and ScriptModule.

forward(spikes)[source]

Defines the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

training: bool
norse.torch.module.test.test_lif.test_backward_model()[source]
norse.torch.module.test.test_lif.test_lif_cell_feedforward()[source]
norse.torch.module.test.test_lif.test_lif_feedforward_cell_backward()[source]
norse.torch.module.test.test_lif.test_lif_feedforward_layer()[source]
norse.torch.module.test.test_lif.test_lif_feedforward_layer_backward()[source]
norse.torch.module.test.test_lif.test_lif_feedforward_layer_backward_iteration()[source]
norse.torch.module.test.test_lif.test_lif_in_time()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_cell()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_cell_autapses()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_cell_backward()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_cell_no_autapses()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_layer_backward()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_layer_backward_iteration()[source]
norse.torch.module.test.test_lif.test_lif_recurrent_sequence()[source]