(self, x)
| 768 | self.eval() |
| 769 | |
| 770 | def forward(self, x): |
| 771 | if self.mode == "linear": |
| 772 | x = self.linear(x) |
| 773 | if self.mode == "addmm": |
| 774 | x = torch.addmm(self.bias, x, self.weight) |
| 775 | elif self.mode == "mm": |
| 776 | x = torch.mm(x, self.weight) |
| 777 | return self.activation(x) |
| 778 | |
| 779 | |
| 780 | class ConvActivationModule(torch.nn.Module): |
nothing calls this directly
no test coverage detected