Skip to content

Commit

Permalink
Make --sparse influence Monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
n-shevko committed Mar 6, 2025
1 parent 9678254 commit fd0ef9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mnist/batch_eth_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
spikes = {}
for layer in set(network.layers):
spikes[layer] = Monitor(
network.layers[layer], state_vars=["s"], time=int(time / dt), device=device, sparse=True
network.layers[layer], state_vars=["s"], time=int(time / dt), device=device, sparse=sparse
)
network.add_monitor(spikes[layer], name="%s_spikes" % layer)

Expand Down

0 comments on commit fd0ef9b

Please sign in to comment.