All models

snntorch_sconv2dlstm_event

A convolutional LSTM cell whose membrane state fires spikes, one time step per call, from snntorch.

Spiking networks · 24 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (35 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
10.4K
Operations
24
Framework
PyTorch
Recurrent
No
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10100
Graph hash
78f853e4b5b5ba9432db6f288fb7cc1b62c2da2017cabede8ba6acdeb2d48409
Skeleton hash
02d71840cfffa3746ac5ff6d6cef288468ac08c6bac0c917d38ea8c7eabdb7e2
Architecture hash
1c6c02a4b264cd485568f0467dd7be010dab34e8e07d1e7fff1605c912f9deca
Diagram SHA-256
aecbc8c617d105a778b85678022a919fea599f810f1e12ec5ca8c8ec1acdf9be
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

SConv2dLSTM is snntorch's spiking 2d convolutional long short-term memory cell: its hidden states are membrane potential and synaptic current, mem and syn, which correspond to the hidden and cell states h and c in the original LSTM formulation. Where a standard LSTM multiplies by weight matrices, this cell applies 2D cross-correlation in its gate equations, with the Hadamard product for the state mixing. The output state is then thresholded to determine whether an output spike is generated.

Unlike the LSTM module in PyTorch, only one time step is simulated each time the cell is called, so a sequence is run by looping outside the cell. Both captured members are single cells with 2 input channels and 16 output channels on a 32 by 32 frame, stepped once and returning the spike, synaptic current and membrane tensors. To conform to standard LSTM state behavior, the default reset mechanism is none, so no reset is applied after a spike unless you change it. At the moment a stride other than 1 is not supported.

Key idea. An LSTM cell whose gates are convolutions and whose membrane output is thresholded into spikes, a convolutional recurrent unit for spiking networks.

  • SConv2dLSTM
  • spiking ConvLSTM
  • spiking convolutional LSTM
  • snntorch
  • spiking neural network
  • SNN
  • event frames
  • neuromorphic
  • LSTM

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.