Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ default
Function
default
usr/diff/diffusion.py:22–25 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
20
21
22
def
default(val, d):
23
if
exists(val):
24
return
val
25
return
d()
if
isfunction(d)
else
d
26
27
28
def
cycle(dl):
Callers
2
q_sample
Method · 0.70
p_losses
Method · 0.70
Calls
1
exists
Function · 0.70
Tested by
no test coverage detected