diff --git a/doc/fluid/user_guides/howto/dygraph/DyGraph.md b/doc/fluid/user_guides/howto/dygraph/DyGraph.md index 5bffcf6cf8c21e98c02e73d055648d9a211076c0..71873a625184406eaf7665bac3bdf00add693f3b 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.]