Skip to content

Commit 3b17487

Browse files
committed
reformat using Black
1 parent 976f2b8 commit 3b17487

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

chebai/models/ffn.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
import torch
55
from torch import Tensor
66

7+
78
class FFN(ChebaiBaseNet):
89

910
NAME = "FFN"
1011

11-
def __init__(self, input_size: int = 1000, num_hidden_layers: int = 3, hidden_size: int = 128, **kwargs):
12+
def __init__(
13+
self,
14+
input_size: int = 1000,
15+
num_hidden_layers: int = 3,
16+
hidden_size: int = 128,
17+
**kwargs
18+
):
1219
super().__init__(**kwargs)
1320

1421
self.layers = torch.nn.ModuleList()
@@ -52,4 +59,3 @@ def forward(self, data, **kwargs):
5259
for layer in self.layers:
5360
x = torch.relu(layer(x))
5461
return {"logits": x}
55-

0 commit comments

Comments
 (0)