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

Method forward

advanced_source/neural_style_tutorial.py:289–291  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

287 self.std = torch.tensor(std).view(-1, 1, 1)
288
289 def forward(self, img):
290 # normalize ``img``
291 return (img - self.mean) / self.std
292
293
294######################################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected