MCPcopy Create free account
hub / github.com/Vchitect/SEINE / SiLU

Class SiLU

models/utils.py:132–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.
132class SiLU(nn.Module):
133 def forward(self, x):
134 return x * torch.sigmoid(x)
135
136
137class GroupNorm32(nn.GroupNorm):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected