MCPcopy Create free account
hub / github.com/ZZy979/pytorch-tutorial / forward

Method forward

beginner/two_layer_net.py:19–25  ·  view source on GitHub ↗

In the forward function we accept a Tensor of input data and we must return a Tensor of output data. We can use Modules defined in the constructor as well as arbitrary operators on Tensors.

(self, x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected