Hi,
With Loihi simulator , Im getting the below error when trying to probe weight values from the connection. However this is not the case with nengo core simulator. Is there any workaround for obtaining the weight values?
code=>
with nengo.Network(label="A Single Neuron") as model:
nengo_loihi.add_params(model)
neuron = nengo.Ensemble(
1,
dimensions=1, # Represent a scalar
# Set intercept to 0.5
intercepts=Uniform(-0.5, -0.5),
# Set the maximum firing rate of the neuron to 100hz
max_rates=Uniform(100, 100),
# Set the neuron's firing rate to increase for positive input
encoders=[[1]],
# neuron_type=nengo_loihi.neurons.LoihiLIF()
neuron_type=nengo_loihi.LoihiLIF()
)
cos = nengo.Node(lambda t: np.cos(8 * t))
# Connect the input signal to the neuron
con = nengo.Connection(cos, neuron,synapse=None)
# The original input
cos_probe = nengo.Probe(cos)
# The raw spikes from the neuron
spikes = nengo.Probe(neuron.neurons)
# Subthreshold soma voltage of the neuron
voltage = nengo.Probe(neuron.neurons, "voltage")
# Spikes filtered by a 10ms post-synaptic filter
filtered = nengo.Probe(neuron, synapse=0.01)
wt = nengo.Probe(con,"output",synapse=0)
Error =>
nengo.exceptions.BuildError: Object (<Connection at 0x7f2e984745c0 from <Node (unlabeled) at 0x7f2e98474550> to <Ensemble (unlabeled) at 0x7f2e984744a8>>) is not a part of the network