Dimitrius174's picture
Upload model.py with huggingface_hub
55f5102 verified
Raw
History Blame Contribute Delete
282 Bytes
import torch.nn as nn
class SmallNN(nn.Module):
def __init__(self):
super().__init__()
self.encoder = nn.Sequential(nn.Linear(8, 64), nn.ReLU())
self.classifier = nn.Linear(64, 4)
def forward(self, x):
return self.classifier(self.encoder(x))