Skip to content

Commit

Permalink
reformat using Black
Browse files Browse the repository at this point in the history
  • Loading branch information
sfluegel05 committed Jan 10, 2025
1 parent 976f2b8 commit 3b17487
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions chebai/models/ffn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
import torch
from torch import Tensor


class FFN(ChebaiBaseNet):

NAME = "FFN"

def __init__(self, input_size: int = 1000, num_hidden_layers: int = 3, hidden_size: int = 128, **kwargs):
def __init__(
self,
input_size: int = 1000,
num_hidden_layers: int = 3,
hidden_size: int = 128,
**kwargs
):
super().__init__(**kwargs)

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

0 comments on commit 3b17487

Please sign in to comment.