提交 ac471307 编写于 作者: J JiabinYang

fix dygraph doc code with wrong indent

上级 4ac2431f
......@@ -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.append(fluid.dygraph.to_variable(x))
ret = fluid.layers.sums(inputs)
print(ret.numpy())
inputs = []
for _ in range(10):
inputs.append(fluid.dygraph.to_variable(x))
ret = fluid.layers.sums(inputs)
print(ret.numpy())
[[10. 10.]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册