MCPcopy Create free account
hub / github.com/GasaiYU/PartRM / forward

Method forward

core/unet.py:177–183  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

175 self.attns = nn.ModuleList(attns)
176
177 def forward(self, x):
178 x = self.nets[0](x)
179 for attn, net in zip(self.attns, self.nets[1:]):
180 if attn:
181 x = attn(x)
182 x = net(x)
183 return x
184
185
186class UpBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected