Skip to content

Commit 9c932b1

Browse files
committed
added batch-size arg to slif
1 parent ba08453 commit 9c932b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ngclearn/components/neurons/spiking/sLIFCell.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ class SLIFCell(JaxComponent): ## leaky integrate-and-fire cell
211211
# Define Functions
212212
def __init__(self, name, n_units, tau_m, resist_m, thr, resist_inh=0.,
213213
thr_persist=False, thr_gain=0.0, thr_leak=0.0, rho_b=0.,
214-
refract_time=0., sticky_spikes=False, thr_jitter=0.05, **kwargs):
214+
refract_time=0., sticky_spikes=False, thr_jitter=0.05,
215+
batch_size=1, **kwargs):
215216
super().__init__(name, **kwargs)
216217

217218
## membrane parameter setup (affects ODE integration)
@@ -233,7 +234,7 @@ def __init__(self, name, n_units, tau_m, resist_m, thr, resist_inh=0.,
233234

234235
## Layer Size Setup
235236
self.n_units = n_units
236-
self.batch_size = 1
237+
self.batch_size = batch_size
237238

238239
## Adaptive threshold setup
239240
self.rho_b = rho_b

0 commit comments

Comments
 (0)