Skip to content

Commit cac5207

Browse files
committed
update hebbian synapse
1 parent 5a58b87 commit cac5207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ngclearn/components/synapses/hebbian/hebbianSynapse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class HebbianSynapse(DenseSynapse):
166166
"""
167167

168168
# Define Functions
169-
@deprecate_args(_rebind=False, w_decay='prior')
169+
# @deprecate_args(_rebind=False, w_decay='prior')
170170
def __init__(
171171
self, name, shape, eta=0., weight_init=None, bias_init=None, w_bound=1., is_nonnegative=False,
172172
prior=("constant", 0.), w_decay=0., sign_value=1., optim_type="sgd", pre_wght=1., post_wght=1., p_conn=1.,
@@ -210,8 +210,8 @@ def __init__(
210210

211211
#key, subkey = random.split(self.key.value)
212212
self.opt_params = Compartment(get_opt_init_fn(optim_type)(
213-
[self.weights.value, self.biases.value]
214-
if bias_init else [self.weights.value]))
213+
[self.weights.get(), self.biases.get()]
214+
if bias_init else [self.weights.get()]))
215215

216216
@staticmethod
217217
def _compute_update(w_bound, is_nonnegative, sign_value, prior_type, prior_lmbda, pre_wght,

0 commit comments

Comments
 (0)