提交 022af4ba 编写于 作者: J JiabinYang

fix dygraph doc code with wrong indent

上级 ac471307
...@@ -39,11 +39,11 @@ Dygraph将非常适合和Numpy一起使用,使用`fluid.dygraph.to_variable(x) ...@@ -39,11 +39,11 @@ Dygraph将非常适合和Numpy一起使用,使用`fluid.dygraph.to_variable(x)
x = np.ones([2, 2], np.float32) x = np.ones([2, 2], np.float32)
with fluid.dygraph.guard(): with fluid.dygraph.guard():
inputs = [] inputs = []
for _ in range(10): for _ in range(10):
inputs.append(fluid.dygraph.to_variable(x)) inputs.append(fluid.dygraph.to_variable(x))
ret = fluid.layers.sums(inputs) ret = fluid.layers.sums(inputs)
print(ret.numpy()) print(ret.numpy())
[[10. 10.] [[10. 10.]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册