Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/deepbrainai-research/float
/ make_kernel
Function
make_kernel
models/float/styledecoder.py:36–41 ·
view source on GitHub ↗
(k)
Source
from the content-addressed store, hash-verified
34
35
36
def
make_kernel(k):
37
k = torch.tensor(k, dtype=torch.float32)
38
if
k.ndim == 1:
39
k = k[None, :] * k[:, None]
40
k /= k.sum()
41
return
k
42
43
44
class
FusedLeakyReLU(nn.Module):
Callers
3
__init__
Method · 0.70
__init__
Method · 0.70
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected