MCPcopy Create free account
hub / github.com/ali-vilab/dreamtalk / forward

Method forward

generators/base_function.py:235–245  ·  view source on GitHub ↗
(self, x, z)

Source from the content-addressed store, hash-verified

233 self.output_nc = out_channels
234
235 def forward(self, x, z):
236 out = x.pop()
237 for i in range(self.layers)[::-1]:
238 res_model = getattr(self, 'res' + str(i))
239 up_model = getattr(self, 'up' + str(i))
240 jump_model = getattr(self, 'jump' + str(i))
241 out = res_model(out, z)
242 out = up_model(out)
243 out = jump_model(x.pop()) + out
244 out_image = self.final(out)
245 return out_image
246
247class FirstBlock2d(nn.Module):
248 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected