-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
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
Simulator(..., model=Model(dt=float(dt), label="%s, dt=%f" % (network, dt), decoder_cache=None), ...)to construct the individual simulators? Also note:
nengo-loihi/nengo_loihi/simulator.py
Lines 406 to 409 in 025cdf9
| model = nengo.builder.Model( | |
| dt=float(dt), | |
| label="%s, dt=%f" % (network, dt), | |
| decoder_cache=get_default_decoder_cache()) |
and:
| self.decoder_cache = NoDecoderCache() |
Metadata
Metadata
Assignees
Labels
No labels