Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ __init__
Method
__init__
usr/diff/net.py:33–35 ·
view source on GitHub ↗
(self, dim)
Source
from the content-addressed store, hash-verified
31
32
class
SinusoidalPosEmb(nn.Module):
33
def
__init__(self, dim):
34
super().__init__()
35
self.dim = dim
36
37
def
forward(self, x):
38
device = x.device
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected