Skip to content

Commit

Permalink
[dnn] add various linear layers (#407)
Browse files Browse the repository at this point in the history
[dnn] add various linear layers
  • Loading branch information
ztqakita authored Jun 27, 2023
2 parents 59ad18c + 82ad34a commit 98117c3
Show file tree
Hide file tree
Showing 12 changed files with 1,022 additions and 454 deletions.
1 change: 0 additions & 1 deletion brainpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
dyn, # dynamics module
# delay, # delay module
)
from brainpy._src.delay import (DataDelay, TargetDelay)

from brainpy.synapses import (
synouts, # synaptic output
Expand Down
2 changes: 1 addition & 1 deletion brainpy/_src/connect/random_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ class PowerLaw(TwoEndConnector):
Phys. Rev. E, 65, 026107, 2002.
"""

def __init__(self, m, p, directed=False, seed=None, **kwargs):
def __init__(self, m: int, p: float, directed=False, seed=None, **kwargs):
super(PowerLaw, self).__init__(**kwargs)
self.m = m
self.p = p
Expand Down
Loading

0 comments on commit 98117c3

Please sign in to comment.