Open arvoelke opened 5 years ago
Here's another network that triggers this bug (or a very related one):
model = nengo.Network()
with model:
stim = nengo.Node(np.sin)
s1 = nengo.Node(None, size_in=1)
out = nengo.Node(None, size_in=1)
nengo.Connection(stim, s1, synapse=None)
nengo.Connection(s1, out)
a = nengo.Ensemble(n_neurons=50, dimensions=1)
nengo.Connection(s1, a)
nengo.Connection(a, out)
p = nengo.Probe(out)
I'm probing out
, and it has two inputs: one from the on-chip Ensemble a
, and one from s1
which is just an off-chip passthrough Node whose only input is the stimulus Node stim
. The result is a probe that just records 0 all the time (rather than recording the sum of a
and stim
). If you change either of the Node
s from passthroughs to lambda t,x:x
Nodes, then the problem goes away.
The passthrough is removed, and no connections are made to replace
nengo.Connection(passthrough, offchip)
. As a result, theoffchip
probe reports a flat zero, unless of courseremove_passthrough
is disabled.