MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / forward

Method forward

src/diffusion/nn.py:13–14  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

11# PyTorch 1.7 has SiLU, but we support PyTorch 1.5.
12class SiLU(nn.Module):
13 def forward(self, x):
14 return x * th.sigmoid(x)
15
16
17class GroupNorm32(nn.GroupNorm):

Callers 1

forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected