Spaces:
Runtime error
Runtime error
Download modules/dml/Generator.py from bilegentile/test: direct link, hf CLI and curl.
- Browser
- Download file 172 Bytes
-
https://huggingface.co/spaces/bilegentile/test/resolve/refs%2Fpr%2F2/modules/dml/Generator.py
- Command line
-
hf download hf://spaces/bilegentile/test@refs/pr/2/modules/dml/Generator.py
-
curl -L -o Generator.py https://huggingface.co/spaces/bilegentile/test/resolve/refs%2Fpr%2F2/modules/dml/Generator.py
172 Bytes
| from typing import Optional | |
| import torch | |
| class Generator(torch.Generator): | |
| def __init__(self, device: Optional[torch.device] = None): | |
| super().__init__("cpu") | |