Skip to content

Commit

Permalink
Move monitors to device
Browse files Browse the repository at this point in the history
  • Loading branch information
Hananel-Hazan committed Feb 17, 2021
1 parent d58b512 commit 5ee9497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mnist/reservoir.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@

spikes = {}
for l in network.layers:
spikes[l] = Monitor(network.layers[l], ["s"], time=time)
spikes[l] = Monitor(network.layers[l], ["s"], time=time, device=device)
network.add_monitor(spikes[l], name="%s_spikes" % l)

voltages = {"O": Monitor(network.layers["O"], ["v"], time=time)}
voltages = {"O": Monitor(network.layers["O"], ["v"], time=time, device=device)}
network.add_monitor(voltages["O"], name="O_voltages")

# Directs network to GPU
Expand Down

0 comments on commit 5ee9497

Please sign in to comment.