SolveQ / src /model.py
ByteJoseph's picture
Upload folder using huggingface_hub
dbadc63 verified
Raw
History Blame Contribute Delete
293 Bytes
import torch.nn as nn
class LinearModel(nn.Module):
def __init__(self):
super().__init__()
self.net = nn.Sequential(
nn.Linear(1,16),
nn.ReLU(),
nn.Linear(16,1)
)
def forward(self, x):
return self.net(x)