From 0b4d086fd550759d97f6ebf8db6a603572e854d4 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 17 Jan 2020 20:16:34 +0800 Subject: [PATCH] fix the default value of summarize from -1 to 20 in API Print test=develop (#1737) --- doc/fluid/api_cn/layers_cn/Print_cn.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/api_cn/layers_cn/Print_cn.rst b/doc/fluid/api_cn/layers_cn/Print_cn.rst index eb7fbe0e0..9ed9e9e21 100644 --- a/doc/fluid/api_cn/layers_cn/Print_cn.rst +++ b/doc/fluid/api_cn/layers_cn/Print_cn.rst @@ -3,7 +3,7 @@ Print ------------------------------- -.. py:function:: paddle.fluid.layers.Print(input, first_n=-1, message=None, summarize=-1, print_tensor_name=True, print_tensor_type=True, print_tensor_shape=True, print_tensor_lod=True, print_phase='both') +.. py:function:: paddle.fluid.layers.Print(input, first_n=-1, message=None, summarize=20, print_tensor_name=True, print_tensor_type=True, print_tensor_shape=True, print_tensor_lod=True, print_phase='both') **Print操作命令** @@ -13,7 +13,7 @@ Print 参数: - **input** (Variable)-将要打印的Tensor - - **summarize** (int)-打印Tensor中的元素数目,如果值为-1则打印所有元素 + - **summarize** (int)-打印Tensor中的元素数目,如果值为-1则打印所有元素,默认值为20 - **message** (str)-打印Tensor信息前自定义的字符串类型消息,作为前缀打印 - **first_n** (int)-打印Tensor的次数 - **print_tensor_name** (bool)-可选,指明是否打印Tensor名称,默认为True -- GitLab