-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
Description
nengo-loihi/nengo_loihi/splitter.py
Lines 61 to 64 in 1517915
| self.host = Network(seed=original.seed) | |
| self.chip = Network(seed=original.seed) | |
| self.host_pre = Network(seed=original.seed) | |
^ Should pass add_to_container=False, otherwise weird things can happen like in the following code:
with nengo.Network() as model:
x = nengo.Ensemble(100, 1)
with nengo_loihi.Simulator(model) as sim:
pass
print(model.all_networks)(prints 3 networks)
Each split adds all of the splitter sub-networks to the original model. Note this only happens if the simulator is constructed from within the context manager of some network.