MCPcopy Create free account
hub / github.com/pytorch/tutorials / forward

Method forward

advanced_source/neural_style_tutorial.py:181–183  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

179 self.target = target.detach()
180
181 def forward(self, input):
182 self.loss = F.mse_loss(input, self.target)
183 return input
184
185######################################################################
186# .. note::

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected