(self, model)
| 319 | |
| 320 | class SegmentationEnd2End(torch.nn.Module): |
| 321 | def __init__(self, model): |
| 322 | super().__init__() |
| 323 | self.model = model |
| 324 | |
| 325 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 326 | softmax = torch.nn.functional.softmax(self.model(x)["out"], dim=1) |