Skip to content

Commit 091ee74

Browse files
author
Alexander Ororbia
committed
removed flag from bernoulli/latency-cells for now; minor edit to doc
1 parent 09d0375 commit 091ee74

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**ngc-learn** officially supports Linux on Python 3. It can be run with or without a GPU.
44

5-
<i>Setup:</i> <a href="https://github.com/NACLab/ngc-learn">NGC-Learn</a>, in its entirety (including its supporting utilities), requires that you ensure that you have installed the following base dependencies in your system. Note that this library was developed and tested on Ubuntu 22.04 (with much earlier versions on Ubuntu 18.04/20.04).
5+
<i>Setup:</i> <a href="https://github.com/NACLab/ngc-learn">NGC-Learn</a>, in its entirety (including its supporting utility sub-packages), requires that you ensure that you have installed the following base dependencies in your system. Note that this library was developed and tested on Ubuntu 22.04 (with much earlier versions on Ubuntu 18.04/20.04).
66
Specifically, NGC-Learn requires:
77
* Python (>=3.10)
88
* ngcsimlib (>=2.0.0), (<a href="https://github.com/NACLab/ngc-sim-lib">official page</a>)

ngclearn/components/input_encoders/bernoulliCell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def __init__(self, name: str, n_units: int, batch_size: int = 1, key: Union[jax.
3030
super().__init__(name=name, key=key)
3131

3232
## Layer Size Setup
33-
self.batch_size = Compartment(batch_size, fixed=True)
34-
self.n_units = Compartment(n_units, fixed=True)
33+
self.batch_size = Compartment(batch_size)
34+
self.n_units = Compartment(n_units)
3535

3636
restVals = jnp.zeros((batch_size, n_units))
3737
self.inputs = Compartment(restVals, display_name="Input Stimulus") # input compartment

ngclearn/components/input_encoders/latencyCell.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,18 @@ def __init__(
151151
super().__init__(name=name, key=key)
152152

153153
## latency meta-parameters
154-
self.first_spike_time = Compartment(first_spike_time, fixed=True)
155-
self.tau = Compartment(tau, fixed=True)
156-
self.threshold = Compartment(threshold, fixed=True)
157-
self.linearize = Compartment(linearize, fixed=True)
158-
self.clip_spikes = Compartment(clip_spikes, fixed=True)
154+
self.first_spike_time = Compartment(first_spike_time)
155+
self.tau = Compartment(tau)
156+
self.threshold = Compartment(threshold)
157+
self.linearize = Compartment(linearize)
158+
self.clip_spikes = Compartment(clip_spikes)
159159
## normalize latency code s.t. final spike(s) occur w/in num_steps
160-
self.normalize = Compartment(normalize, fixed=True)
161-
self.num_steps = Compartment(num_steps, fixed=True)
160+
self.normalize = Compartment(normalize)
161+
self.num_steps = Compartment(num_steps)
162162

163163
## Layer Size Setup
164-
self.batch_size = Compartment(batch_size, fixed=True)
165-
self.n_units = Compartment(n_units, fixed=True)
164+
self.batch_size = Compartment(batch_size)
165+
self.n_units = Compartment(n_units)
166166

167167
## Compartment setup
168168
restVals = jnp.zeros((batch_size, n_units))

0 commit comments

Comments
 (0)