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

Method __init__

modules.py:60–62  ·  view source on GitHub ↗
(self, w0=20)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected