Download src/model.py from ByteJoseph/SolveQ: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/ByteJoseph/SolveQ/resolve/main/src/model.py
- Command line
-
hf download hf://ByteJoseph/SolveQ/src/model.py
-
curl -L -o model.py https://huggingface.co/ByteJoseph/SolveQ/resolve/main/src/model.py
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) | |