| 155 | |
| 156 | |
| 157 | class SoftmaxModule(torch.nn.Module): |
| 158 | def __init__(self, dim: int): |
| 159 | super().__init__() |
| 160 | |
| 161 | self.softmax = torch.nn.Softmax(dim=dim) |
| 162 | |
| 163 | def forward(self, x): |
| 164 | return self.softmax(x) |
| 165 | |
| 166 | |
| 167 | class SoftmaxConvModule(torch.nn.Module): |
no outgoing calls