Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarcCoru/locationencoder
/ Sine
Class
Sine
locationencoder/nn/siren.py:17–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
# sin activation
16
17
class
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
24
# siren layer
25
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected