ice-v2-classifier / model.py
Deepnar's picture
Release retained frozen ICE v2 paper checkpoint and inference metadata
b69b2d4 verified
Raw History Blame Contribute Delete
455 Bytes
# src/classifier/model.py
import torch
import torch.nn as nn
class ICEClassifier(nn.Module):
def __init__(self):
super(ICEClassifier, self).__init__()
self.fc1 = nn.Linear(384, 128)
self.relu = nn.ReLU()
self.dropout = nn.Dropout(0.3)
self.fc2 = nn.Linear(128, 25)
def forward(self, x):
x = self.fc1(x)
x = self.relu(x)
x = self.dropout(x)
x = self.fc2(x)
return x