17 lines
434 B
Python
17 lines
434 B
Python
import torch.nn as nn
|
|
|
|
class FisrFCN(nn.Module):
|
|
def __init__(self, in_c, out_c) -> None:
|
|
super().__init__()
|
|
|
|
self.fc1 = nn.Linear(in_c, 128)
|
|
self.fc2 = nn.Linear(128, 64)
|
|
self.fc3 = nn.Linear(64, out_c)
|
|
|
|
self.relu = nn.ReLU()
|
|
|
|
def forward(self, x):
|
|
x = self.relu(self.fc1(x))
|
|
x = self.relu(self.fc2(x))
|
|
x = self.fc3(x)
|
|
return x |