Skip to content

Commit 8bb2dc7

Browse files
author
Alexander Ororbia
committed
Merge branch 'main' of github.com:NACLab/ngc-learn
2 parents 8fbe8e2 + 9c5034d commit 8bb2dc7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

docs/tutorials/model_basics/evolving_synapses.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ with Context("Circuit") as circuit:
4646

4747
## create and compile core simulation commands
4848
evolve = (MethodProcess("evolve")
49-
>> a.evolve)
49+
>> Wab.evolve)
5050

5151
advance = (MethodProcess("advance")
52-
>> a.advance_state)
52+
>> a.advance_state
53+
>> Wab.advance_state
54+
>> b.advance_state)
5355

5456
reset = (MethodProcess("reset")
55-
>> a.reset)
57+
>> a.reset
58+
>> b.reset)
5659

5760
## set up non-compiled utility commands
5861
def clamp(x):
@@ -67,7 +70,7 @@ and evolve the synapse every time step like so:
6770
x_seq = jnp.asarray([[1, 1, 0, 0, 1]], dtype=jnp.float32)
6871

6972
reset.run()
70-
print("{}: Wab = {}".format(-1, Wab.weights.value))
73+
print("{}: Wab = {}".format(-1, Wab.weights.get()))
7174
for ts in range(x_seq.shape[1]):
7275
x_t = jnp.expand_dims(x_seq[0,ts], axis=0) ## get data at time t
7376
clamp(x_t)

0 commit comments

Comments
 (0)