MCPcopy Create free account
hub / github.com/computational-imaging/bacon / forward

Method forward

experiments/plot_activation_distributions.py:49–58  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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
61class FourierLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected