File size: 465 Bytes
bd6b890
a040341
 
646f772
bd6b890
646f772
 
bd6b890
646f772
a040341
bd6b890
646f772
a040341
 
646f772
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import torch
import torch.nn as nn

class SimpleEvoModel(nn.Module):
    def __init__(self, input_dim=384, hidden_dim=256, output_dim=2, dropout=0.1):
        super().__init__()
        self.model = nn.Sequential(
            nn.LayerNorm(input_dim),
            nn.Linear(input_dim, hidden_dim),
            nn.ReLU(),
            nn.Dropout(dropout),
            nn.Linear(hidden_dim, output_dim)
        )

    def forward(self, x):
        return self.model(x)