MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / __init__

Method __init__

locationencoder/nn/siren.py:18–20  ·  view source on GitHub ↗
(self, w0 = 1.)

Source from the content-addressed store, hash-verified

16
17class Sine(nn.Module):
18 def __init__(self, w0 = 1.):
19 super().__init__()
20 self.w0 = w0
21 def forward(self, x):
22 return torch.sin(self.w0 * x)
23

Callers 4

__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