(self, model)
| 271 | |
| 272 | class ClassifierEnd2End(torch.nn.Module): |
| 273 | def __init__(self, model): |
| 274 | super().__init__() |
| 275 | self.model = model |
| 276 | |
| 277 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 278 | softmax = torch.nn.functional.softmax(self.model(x), dim=1) |