Skip to content

Commit

Permalink
slight extension to rate-cell for tensor-shaping
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 14, 2024
1 parent f4b81b2 commit 52f36ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngclearn/components/neurons/graded/rateCell.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ def _advance_state(dt, fx, dfx, tau_m, priorLeakRate, intgFlag, priorType,
zF = fx(z) ## post-activation function value(s)
else:
## run in "stateless" mode (when no membrane time constant provided)
z = _run_cell_stateless(j)
j_total = j + j_td
z = _run_cell_stateless(j_total)
zF = fx(z)
return j, j_td, z, zF

Expand Down

0 comments on commit 52f36ae

Please sign in to comment.