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

Method forward

locationencoder/nn/siren.py:21–22  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

19 super().__init__()
20 self.w0 = w0
21 def forward(self, x):
22 return torch.sin(self.w0 * x)
23
24# siren layer
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected