Skip to content

Commit

Permalink
fixup! Put neuron input transforms on-chip
Browse files Browse the repository at this point in the history
  • Loading branch information
hunse committed Jun 5, 2019
1 parent 32a5873 commit 4f26653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nengo_loihi/tests/test_learning.py
Expand Up @@ -114,7 +114,7 @@ def test_pes_overflow(plt, seed, Simulator):

loihi_model = Model()
# set learning_wgt_exp low to create overflow in weight values
loihi_model.pes_wgt_exp = -1
loihi_model.pes_wgt_exp = -2

with Simulator(model, model=loihi_model) as loihi_sim:
loihi_sim.run(simtime)
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_pes_overflow(plt, seed, Simulator):
assert errors_j[i] < 0.1, ("Learning output for dim %d did not match "
"any scaled version of the target output"
% j)
assert scale[i] > 0.4, "Learning output for dim %d is too small" % j
assert scale[i] > 0.25, "Learning output for dim %d is too small" % j
assert scale[i] < 0.7, ("Learning output for dim %d is too large "
"(weights or traces not clipping as expected)"
% j)
Expand Down

0 comments on commit 4f26653

Please sign in to comment.