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

Function preprocess

beginner_source/nn_tutorial.py:751–752  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

749
750
751def preprocess(x):
752 return x.view(-1, 1, 28, 28)
753
754###############################################################################
755# The model created with ``Sequential`` is simple:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected