Spaces:
Sleeping
Sleeping
Download model/bn.py from Pavan2k4/Building_area: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/Pavan2k4/Building_area/resolve/main/model/bn.py
- Command line
-
hf download hf://spaces/Pavan2k4/Building_area/model/bn.py
-
curl -L -o bn.py https://huggingface.co/spaces/Pavan2k4/Building_area/resolve/main/model/bn.py
318 Bytes
| import torch | |
| import torch.nn as nn | |
| import torch.functional as F | |
| class batch_norm(nn.Module): | |
| def __init__(self, inp): | |
| super().__init__() | |
| self.batch = nn.BatchNorm2d(inp) | |
| self.relu = nn.ReLU() | |
| def forward(self, x): | |
| b = self.batch(x) | |
| op = self.relu(b) | |
| return op |