Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ __init__
Method
__init__
usr/diff/candidate_decoder.py:15–17 ·
view source on GitHub ↗
(self, dim)
Source
from the content-addressed store, hash-verified
13
14
class
SinusoidalPosEmb(nn.Module):
15
def
__init__(self, dim):
16
super().__init__()
17
self.dim = dim
18
19
def
forward(self, x):
20
device = x.device
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected