diff --git a/doc/fluid/api_cn/layers_cn/is_empty_cn.rst b/doc/fluid/api_cn/layers_cn/is_empty_cn.rst index 974e1fc5f8ba2b358eb22364a4795d61fadb01c5..ca6e45c94ca1cf7a5d15db29756299ec89c8f102 100644 --- a/doc/fluid/api_cn/layers_cn/is_empty_cn.rst +++ b/doc/fluid/api_cn/layers_cn/is_empty_cn.rst @@ -9,13 +9,13 @@ is_empty 参数: - **x** (Variable)-测试的变量 - - **cond** (Variable|None)-输出参数。返回给定x的测试结果,默认为空(None) + - **cond** (Variable|None)-可选输出参数,默认为空(None)。若传入了该参数,则该参数中存储返回给定x的测试结果 返回:布尔类型的标量。如果变量x为空则值为真 返回类型:Variable -抛出异常:``TypeError``-如果input不是变量或cond类型不是变量 +抛出异常:``TypeError``-如果input类型不是Variable或cond存储的返回结果的类型不是bool **代码示例**: diff --git a/doc/fluid/api_cn/layers_cn/read_file_cn.rst b/doc/fluid/api_cn/layers_cn/read_file_cn.rst index 3ec36b890ed6782acc742cbf74d699cc96137d78..40e772c107f3e1e249c2863bd11c71e243809436 100644 --- a/doc/fluid/api_cn/layers_cn/read_file_cn.rst +++ b/doc/fluid/api_cn/layers_cn/read_file_cn.rst @@ -7,7 +7,7 @@ read_file 从给定的reader中读取数据 -reader是一个变量,它可以是由函数fluid.layers.open_files()生成的原始reader,或者是由函数fluid.layers.double_buffer()生成的装饰变量,等等。 +reader是一个Variable,它可以是由函数fluid.layers.open_files()生成的原始reader,或者是由函数fluid.layers.double_buffer()生成的装饰变量,等等。 参数: - **reader** (Variable)-待处理的reader