Skip to content

Commit

Permalink
Do Node filtering before interneurons
Browse files Browse the repository at this point in the history
This makes them like Ensembles in this respect, and should avoid
problems with different taus on multiple inputs to an ensemble.

Fixes #94.
  • Loading branch information
hunse committed Sep 27, 2018
1 parent cc2e725 commit 48eb88d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nengo_loihi/splitter.py
Expand Up @@ -180,7 +180,8 @@ def split(model, loihi_model): # noqa: C901
with chip:
logger.debug("Creating ChipReceiveNode for %s", c)
receive = ChipReceiveNode(dim * 2, size_out=dim)
nengo.Connection(receive, c.post, synapse=c.synapse)
nengo.Connection(receive, c.post,
synapse=loihi_model.inter_tau)
with host:
max_rate = loihi_model.inter_rate * loihi_model.inter_n
rtol = 1e-8 # allow for floating point inaccuracies
Expand Down Expand Up @@ -210,7 +211,7 @@ def split(model, loihi_model): # noqa: C901
solver=c.solver,
eval_points=c.eval_points,
scale_eval_points=c.scale_eval_points,
synapse=None,
synapse=c.synapse,
transform=c.transform * scaling)
nengo.Connection(ens.neurons, send, synapse=None)
host2chip_senders[send] = receive
Expand Down

0 comments on commit 48eb88d

Please sign in to comment.