Skip to content

Commit

Permalink
Fix jnp concatenate for sigma_bias
Browse files Browse the repository at this point in the history
  • Loading branch information
kysolvik committed Oct 31, 2023
1 parent 86e6bfd commit 04afde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dabench/model/_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def update(self, r, u, A=None, Win=None):

try:
if self.sigma_bias != 0:
u = jnp.concatenate(([1.0], u))
u = jnp.concatenate((jnp.array([1.0]), u))
p = A @ r.T + Win @ u
q = self.leak_rate * jnp.tanh(p) + (1 - self.leak_rate) * r
except TypeError as err:
Expand Down

0 comments on commit 04afde5

Please sign in to comment.