MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / SiLU

Class SiLU

code/dc_ldm/modules/diffusionmodules/util.py:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.
209class SiLU(nn.Module):
210 def forward(self, x):
211 return x * torch.sigmoid(x)
212
213
214class GroupNorm32(nn.GroupNorm):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected