(self, x)
| 47 | return |
| 48 | |
| 49 | def forward(self, x): |
| 50 | out = self.filters[0](x) |
| 51 | for i in range(1, len(self.filters)): |
| 52 | out = self.filters[i](x) * self.linear[i - 1](out) |
| 53 | out = self.output_linear(out) |
| 54 | |
| 55 | if self.output_act: |
| 56 | out = torch.sin(out) |
| 57 | |
| 58 | return out |
| 59 | |
| 60 | |
| 61 | class FourierLayer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected