Skip to content

Commit

Permalink
fixed minor load bug in lif-cell
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 27, 2024
1 parent 9c932b1 commit 03940e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngclearn/components/neurons/spiking/LIFCell.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def save(self, directory, **kwargs):
def load(self, directory, seeded=False, **kwargs):
file_name = directory + "/" + self.name + ".npz"
data = jnp.load(file_name)
self.thr_theta.set(data['thr_theta'])
self.thr_theta.set(data['threshold_theta'])
## constants loaded in
self.tau_m = data['tau_m']
self.thr = data['thr']
Expand Down

0 comments on commit 03940e9

Please sign in to comment.