Skip to content

Commit

Permalink
Merge pull request #515 from BindsNET/hananel
Browse files Browse the repository at this point in the history
Minor syntax corrections
  • Loading branch information
Hananel-Hazan committed Sep 10, 2021
2 parents 37b4c09 + 8a76f40 commit 85e44b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindsnet/conversion/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def set_requires_grad(module, value):

prev_factor = scale_factor

elif isinstance(module2, nn.Linear) or isinstance(module2, nn.Conv2d):
prev_module = module2
elif isinstance(module, nn.Linear) or isinstance(module, nn.Conv2d):
prev_module = module

if isinstance(module, nn.Linear):
if prev_module is not None:
Expand Down
5 changes: 5 additions & 0 deletions bindsnet/network/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
from .nodes import Nodes
from .topology import AbstractConnection

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from .network import Network


class AbstractMonitor(ABC):
# language=rst
Expand Down

0 comments on commit 85e44b7

Please sign in to comment.