Skip to content

Commit

Permalink
small fix to rf process to allow for non singular instantiations of r…
Browse files Browse the repository at this point in the history
…f neurons (#487)

Co-authored-by: Michael Jurado <Michael.Jurado@gtri.gatech.edu>
  • Loading branch information
Michaeljurado42 and Michael Jurado committed Nov 16, 2022
1 parent f931267 commit cfbcae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lava/proc/rf/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def __init__(self,
if state_exp > 0:
vth = int(vth * (1 << state_exp))
if decay_bits > 0:
sin_decay = int(sin_decay * (1 << decay_bits))
cos_decay = int(cos_decay * (1 << decay_bits))
sin_decay = np.int32(sin_decay * (1 << decay_bits))
cos_decay = np.int32(cos_decay * (1 << decay_bits))

self.a_real_in = InPort(shape=shape)
self.a_imag_in = InPort(shape=shape)
Expand Down

0 comments on commit cfbcae0

Please sign in to comment.