MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / forward

Method forward

sat/sgm/modules/diffusionmodules/util.py:239–240  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

237# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.
238class SiLU(nn.Module):
239 def forward(self, x):
240 return x * torch.sigmoid(x)
241
242
243class GroupNorm32(nn.GroupNorm):

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected