Skip to content

Commit

Permalink
Type hinting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed Mar 19, 2024
1 parent 5f33f21 commit bdd7ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gnn_tracking/models/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
super().__init__()
if hidden_dim is None:
hidden_dim = max(input_size, output_size)
layers = [nn.Linear(input_size, hidden_dim, bias=bias)]
layers: list[nn.Module] = [nn.Linear(input_size, hidden_dim, bias=bias)]
for _l in range(1, L - 1):
layers.append(nn.ReLU())
layers.append(nn.Linear(hidden_dim, hidden_dim, bias=bias))
Expand Down

0 comments on commit bdd7ae7

Please sign in to comment.