From 079a635b5bd964d3e6b9b142238de55b17e061a4 Mon Sep 17 00:00:00 2001 From: gfwm2013 <2449465946@qq.com> Date: Mon, 9 Mar 2020 19:22:20 +0800 Subject: [PATCH] Modify Chinese documents of While and while_loop test=develop --- doc/fluid/api_cn/layers_cn/While_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/layers_cn/While_cn.rst b/doc/fluid/api_cn/layers_cn/While_cn.rst index c0ece48d6..6042043eb 100644 --- a/doc/fluid/api_cn/layers_cn/While_cn.rst +++ b/doc/fluid/api_cn/layers_cn/While_cn.rst @@ -60,7 +60,7 @@ While one = fluid.layers.fill_constant(shape=[1], dtype='float32', value=1) data = fluid.data(name='data', shape=[1], dtype='float32') - sums = fluid.layers.fill_constant(shape=[1], dtype='float32', value=0) # 在 While 外先定义要捕获的变量,需和要捕获的 While 内部的变量名称不同 + sums = fluid.layers.fill_constant(shape=[1], dtype='float32', value=0) # 在 While 外先定义要获取的变量,需和要获取的 While 内部的变量名称不同 cond = fluid.layers.less_than(x=i, y=loop_len) while_op = fluid.layers.While(cond=cond) -- GitLab