Skip to content

Commit 5891adf

Browse files
committed
black formatter
1 parent 98c3cc1 commit 5891adf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindsnet/network/network.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def load(file_name: str, map_location: str = "cpu", learning: bool = None) -> "N
1919
:param learning: Whether to load with learning enabled. Default loads value from
2020
disk.
2121
"""
22-
network = torch.load(open(file_name, "rb"), map_location=map_location, weights_only=False)
22+
network = torch.load(
23+
open(file_name, "rb"), map_location=map_location, weights_only=False
24+
)
2325
if learning is not None and "learning" in vars(network):
2426
network.learning = learning
2527

0 commit comments

Comments
 (0)