From 227d8066e18d5ba751d4c2d5e2113b2efd6e6d41 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 6 Sep 2018 12:07:23 -0700 Subject: [PATCH] Fix a small bug in the example code snippet (#13286) --- doc/survey/dynamic_graph.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/survey/dynamic_graph.md b/doc/survey/dynamic_graph.md index 6b80b014b1b..d03212007a3 100644 --- a/doc/survey/dynamic_graph.md +++ b/doc/survey/dynamic_graph.md @@ -30,7 +30,7 @@ x = Variable(randn(20, 1))) label = Variable(randint(1)) W_1, W_2 = Variable(randn(20, 20)), Variable(randn(10, 20)) h = matmul(W_1, x) -pred = matmul(W_2, x) +pred = matmul(W_2, h) loss = softmax(pred, label) loss.backward() ``` -- GitLab