ia-do-zero / model.py
Skskskd's picture
Upload model.py with huggingface_hub
d3ca560 verified
Raw History Blame Contribute Delete
408 Bytes
import torch
import torch.nn as nn
class MinhaIA(nn.Module):
def __init__(self):
super(MinhaIA, self).__init__()
self.flatten = nn.Flatten()
self.fc1 = nn.Linear(28 * 28, 128)
self.fc2 = nn.Linear(128, 10)
self.relu = nn.ReLU()
def forward(self, x):
x = self.flatten(x)
x = self.relu(self.fc1(x))
x = self.fc2(x)
return x