From 022af4ba22a18085a6e6f034d6019142d25f426e Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Wed, 18 Sep 2019 08:01:03 +0000 Subject: [PATCH] fix dygraph doc code with wrong indent --- doc/fluid/user_guides/howto/dygraph/DyGraph.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/fluid/user_guides/howto/dygraph/DyGraph.md b/doc/fluid/user_guides/howto/dygraph/DyGraph.md index 5bffcf6cf..71873a625 100644 --- a/doc/fluid/user_guides/howto/dygraph/DyGraph.md +++ b/doc/fluid/user_guides/howto/dygraph/DyGraph.md @@ -39,11 +39,11 @@ Dygraph将非常适合和Numpy一起使用,使用`fluid.dygraph.to_variable(x) x = np.ones([2, 2], np.float32) with fluid.dygraph.guard(): - inputs = [] - for _ in range(10): + inputs = [] + for _ in range(10): inputs.append(fluid.dygraph.to_variable(x)) - ret = fluid.layers.sums(inputs) - print(ret.numpy()) + ret = fluid.layers.sums(inputs) + print(ret.numpy()) [[10. 10.] -- GitLab