Spaces:
Sleeping
Sleeping
Download model.py from ClefChen/ARIN_7102: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/ClefChen/ARIN_7102/resolve/main/model.py
- Command line
-
hf download hf://spaces/ClefChen/ARIN_7102/model.py
-
curl -L -o model.py https://huggingface.co/spaces/ClefChen/ARIN_7102/resolve/main/model.py
405 Bytes
| import torch | |
| from torch import nn | |
| class RNN_model(nn.Module): | |
| def __init__(self): | |
| super().__init__() | |
| self.rnn= nn.RNN(input_size=1080, hidden_size=240,num_layers=1, nonlinearity= 'relu', bias= True) | |
| self.output= nn.Linear(in_features=240, out_features=24) | |
| def forward(self, x): | |
| y, hidden= self.rnn(x) | |
| #print(y.shape) | |
| #print(hidden.shape) | |
| x= self.output(y) | |
| return(x) |