Skip to content

Splitter can mutate the original network #211

@arvoelke

Description

@arvoelke

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions