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

Method __init__

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

Source from the content-addressed store, hash-verified

67
68class Sine(nn.Module):
69 def __init__(self, w0=20):
70 super().__init__()
71 self.w0 = torch.tensor(w0)
72
73 def forward(self, input):
74 return torch.sin(self.w0*input)

Callers 13

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected