Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
9
def
forward(x):
10
return
x * w
11
12
# Loss function
13
def
loss(y_pred, y_val):
Callers
1
03_auto_gradient.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected