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

Class FirstSine

modules.py:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59class FirstSine(nn.Module):
60 def __init__(self, w0=20):
61 super().__init__()
62 self.w0 = torch.tensor(w0)
63
64 def forward(self, input):
65 return torch.sin(self.w0*input)
66
67
68class Sine(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected