🤖 Adds initial sim structure
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
|
||||
|
||||
class SimpleNN(nn.Module):
|
||||
def __init__(self, input_size, output_size):
|
||||
super(SimpleNN, self).__init__()
|
||||
self.fc1 = nn.Linear(input_size, 128)
|
||||
self.fc2 = nn.Linear(128, 128)
|
||||
self.fc3 = nn.Linear(128, output_size)
|
||||
|
||||
def forward(self, x):
|
||||
x = torch.relu(self.fc1(x))
|
||||
x = torch.relu(self.fc2(x))
|
||||
x = self.fc3(x)
|
||||
return x
|
||||
Reference in New Issue
Block a user