MCPcopy Create free account
hub / github.com/Lornatang/SRGAN-PyTorch / _forward_impl

Method _forward_impl

model.py:97–103  ·  view source on GitHub ↗
(self, x: Tensor)

Source from the content-addressed store, hash-verified

95
96 # Support torch.script function
97 def _forward_impl(self, x: Tensor) -> Tensor:
98 x = self.features(x)
99 x = self.avgpool(x)
100 x = torch.flatten(x, 1)
101 x = self.classifier(x)
102
103 return x
104
105
106class SRResNet(nn.Module):

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected