Skip to content

Commit 227d806

Browse files
authored
Fix a small bug in the example code snippet (#13286)
1 parent 6de0a18 commit 227d806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/survey/dynamic_graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ x = Variable(randn(20, 1)))
3030
label = Variable(randint(1))
3131
W_1, W_2 = Variable(randn(20, 20)), Variable(randn(10, 20))
3232
h = matmul(W_1, x)
33-
pred = matmul(W_2, x)
33+
pred = matmul(W_2, h)
3434
loss = softmax(pred, label)
3535
loss.backward()
3636
```

0 commit comments

Comments
 (0)