nengo / nengo-loihi

Run Nengo models on Intel's Loihi chip
https://www.nengo.ai/nengo-loihi/
Other
35 stars 12 forks source link

Clear spikes #324

Closed hunse closed 2 years ago

hunse commented 2 years ago

Clears intermediary values as we consume them, freeing up memory (particularly when run_steps is called more than once). Addresses #323.

hunse commented 2 years ago

I added the permanent flag to ensure that some spikes (i.e. those added during build) can be kept permanently in the SpikeInput. This isn't strictly necessary right now, but will be if/when we allow simulator resetting, so figured this fix makes the most sense.