MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / forward

Method forward

SRGAN/loss.py:26–29  ·  view source on GitHub ↗
(self, input, target)

Source from the content-addressed store, hash-verified

24 param.requires_grad = False
25
26 def forward(self, input, target):
27 vgg_input_features = self.vgg(input)
28 vgg_target_features = self.vgg(target)
29 return self.loss(vgg_input_features, vgg_target_features)
30
31if __name__ == '__main__':
32 # vgg = vgg19(pretrained = True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected