Skip to content

Commit

Permalink
增加基类的描述字符
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei123456 committed Sep 14, 2020
1 parent 332ccf0 commit e748c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spikingjelly/clock_driven/surrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __init__(self, alpha, spiking=True, learnable=False):
else:
self.f = self.primitive_function

def extra_repr(self):
return f'alpha={self.alpha}, spiking={self.spiking}, learnable={self.alpha}'

@staticmethod
def spiking_function(x, alpha):
raise NotImplementedError
Expand Down

0 comments on commit e748c64

Please sign in to comment.