Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vchitect/Latte
/ forward
Method
forward
models/utils.py:133–134 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
131
# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.
132
class
SiLU(nn.Module):
133
def
forward(self, x):
134
return
x * torch.sigmoid(x)
135
136
137
class
GroupNorm32(nn.GroupNorm):
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected