Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meshcapade/difflocks
/ dct
Function
dct
k_diffusion/layers.py:16–23 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
14
15
16
def
dct(x):
17
if
x.ndim == 3:
18
return
df.dct(x)
19
if
x.ndim == 4:
20
return
df.dct2(x)
21
if
x.ndim == 5:
22
return
df.dct3(x)
23
raise
ValueError(f
'Unsupported dimensionality {x.ndim}'
)
24
25
26
@lru_cache
Callers
1
loss
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected