Download models/modules/sample_torch_module.py from rishabhv471/table-extraction-from-image: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/rishabhv471/table-extraction-from-image/resolve/main/models/modules/sample_torch_module.py
- Command line
-
hf download hf://spaces/rishabhv471/table-extraction-from-image/models/modules/sample_torch_module.py
-
curl -L -o sample_torch_module.py https://huggingface.co/spaces/rishabhv471/table-extraction-from-image/resolve/main/models/modules/sample_torch_module.py
259 Bytes
| from torch import Tensor, nn | |
| class UselessLayer(nn.Module): | |
| def __init__(self) -> None: | |
| super(UselessLayer, self).__init__() | |
| self.seq = nn.Identity() | |
| def forward(self, x: Tensor) -> Tensor: | |
| x = self.seq(x) | |
| return x | |