MCPcopy Create free account
hub / github.com/IceClear/StableSR / forward

Method forward

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

Source from the content-addressed store, hash-verified

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 4

forwardMethod · 0.45
degradation_bsrganFunction · 0.45
degradation_bsrganFunction · 0.45
degradation_bsrgan_plusFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected