All models

snntorch_sconv2dlstm

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
Published
2022
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
m10099
Graph hash
78f853e4b5b5ba9432db6f288fb7cc1b62c2da2017cabede8ba6acdeb2d48409
Skeleton hash
02d71840cfffa3746ac5ff6d6cef288468ac08c6bac0c917d38ea8c7eabdb7e2
Architecture hash
c74e92577b62ac133541f608a83125f583de0e24e03b88c7fd99dc7690ac3d67
Diagram SHA-256
dc826461ef6f39fea7eec56bbe2fb73cd20d63bba1fddac4f548e0217ad46ee4
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.