Spaces:
Configuration error
Configuration error
Download modules/base.py from kevinwang676/NeuCoSVC: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/spaces/kevinwang676/NeuCoSVC/resolve/main/modules/base.py
- Command line
-
hf download hf://spaces/kevinwang676/NeuCoSVC/modules/base.py
-
curl -L -o base.py https://huggingface.co/spaces/kevinwang676/NeuCoSVC/resolve/main/modules/base.py
235 Bytes
| import torch | |
| class BaseModule(torch.nn.Module): | |
| def __init__(self): | |
| super(BaseModule, self).__init__() | |
| def nparams(self): | |
| return sum(p.numel() for p in self.parameters() if p.requires_grad) | |