Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
238
class
SiLU(nn.Module):
239
def
forward(self, x):
240
return
x * torch.sigmoid(x)
241
242
243
class
GroupNorm32(nn.GroupNorm):
Callers
1
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected