nengo / nengo-loihi

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

Fix bug with no inputs to a neuron #246

Closed hunse closed 4 years ago

hunse commented 4 years ago

Some arrays have shape (1, 0) which gives them a length of 1, but no size.

hunse commented 4 years ago

Sounds good. Thanks for the test!

hunse commented 4 years ago

Ok, I think I've fixed the issue. :crossed_fingers: The solution was to not build synapses that have no weights, which is something that I meant to do at some point anyway. I had to rebase onto #261, so this will have to wait a bit until that's merged first.

hunse commented 4 years ago

Also, I've got this as two commits right now, but I'd be fine squashing them (maybe to something like "Fix sparse connections with no inputs to some neurons").