MCPcopy
hub / github.com/hunkim/PyTorchZeroToAll / forward

Function forward

03_auto_gradient.py:9–10  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

7
8# our model forward pass
9def forward(x):
10 return x * w
11
12# Loss function
13def loss(y_pred, y_val):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected