MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / forward

Method forward

models/networks.py:737–746  ·  view source on GitHub ↗
(self, x, y=None)

Source from the content-addressed store, hash-verified

735 self.n_blocks += 1
736
737 def forward(self, x, y=None):
738 if y is not None:
739 output = self.resnet_block(cat_feature(x, y))
740 for n in range(self.n_blocks):
741 block = getattr(self, 'block_{:d}'.format(n))
742 if n > 0:
743 output = block(cat_feature(output, y))
744 else:
745 output = block(output)
746 return output
747
748
749class Decoder(nn.Module):

Callers

nothing calls this directly

Calls 1

cat_featureFunction · 0.85

Tested by

no test coverage detected