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

Method forward

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

Source from the content-addressed store, hash-verified

153 nn.init.constant_(module.weight, 1)
154
155 def forward(self, x: Tensor) -> Tensor:
156 return self._forward_impl(x)
157
158 # Support torch.script function
159 def _forward_impl(self, x: Tensor) -> Tensor:

Callers

nothing calls this directly

Calls 1

_forward_implMethod · 0.95

Tested by

no test coverage detected