Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei committed Apr 30, 2023
1 parent 70a196f commit 01cdcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spikingjelly/activation_based/neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ def extra_repr(self):
class MaskedPSN(base.MemoryModule):
@staticmethod
@torch.jit.script
def gen_masked_weight(lambda_: float, mask0: torch.Tensor, mask1: torch.Tensor, weight: torch.Tensor):
def gen_masked_weight(lambda_: torch.Tensor, mask0: torch.Tensor, mask1: torch.Tensor, weight: torch.Tensor):
return (lambda_ * mask0 + (1. - lambda_) * mask1) * weight

def masked_weight(self):
Expand Down

0 comments on commit 01cdcd2

Please sign in to comment.