MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/diffusionmodules/util.py:213–214  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected