Skip to content

Commit f4c2e7d

Browse files
author
Alexander Ororbia
committed
minor edit to if-cell
1 parent 20230ae commit f4c2e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngclearn/components/neurons/spiking/IFCell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def advance_state(
155155
else:
156156
_, _v = step_euler(0., v, _dfv, dt, v_params)
157157
## obtain action potentials/spikes
158-
s = (_v > thr).astype(jnp.float32)
158+
s = (_v > thr) * 1.
159159
## update refractory variables
160160
rfr = (rfr + dt) * (1. - s)
161161
## perform hyper-polarization of neuronal cells

0 commit comments

Comments
 (0)