Closed arvoelke closed 5 years ago
import nengo import nengo_loihi print(nengo.rc.get("decoder_cache", "enabled")) try: nengo_loihi.Simulator(nengo.Network()) except: pass print(nengo.rc.get("decoder_cache", "enabled"))
True False
This means that a nengo-loihi simulation followed by one-or-more nengo simulations will no longer use the cache. This can be documented, or potentially relaxed by using
nengo-loihi
nengo
Simulator(..., model=Model(dt=float(dt), label="%s, dt=%f" % (network, dt), decoder_cache=None), ...)
to construct the individual simulators? Also note:
https://github.com/nengo/nengo-loihi/blob/025cdf9973a45a43f6907587ede4d3cb6c828476/nengo_loihi/simulator.py#L406-L409
and:
https://github.com/nengo/nengo-loihi/blob/025cdf9973a45a43f6907587ede4d3cb6c828476/nengo_loihi/builder/builder.py#L90
This means that a
nengo-loihi
simulation followed by one-or-morenengo
simulations will no longer use the cache. This can be documented, or potentially relaxed by usingto construct the individual simulators? Also note:
https://github.com/nengo/nengo-loihi/blob/025cdf9973a45a43f6907587ede4d3cb6c828476/nengo_loihi/simulator.py#L406-L409
and:
https://github.com/nengo/nengo-loihi/blob/025cdf9973a45a43f6907587ede4d3cb6c828476/nengo_loihi/builder/builder.py#L90