提交 32c54b08 编写于 作者: L liym27 提交者: Aurelius84

fix the default value of summarize from -1 to 20 in API Print. test=develop (#1599)

上级 8c5b6869
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Print 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操作命令** **Print操作命令**
...@@ -13,7 +13,7 @@ Print ...@@ -13,7 +13,7 @@ Print
参数: 参数:
- **input** (Variable)-将要打印的Tensor - **input** (Variable)-将要打印的Tensor
- **summarize** (int)-打印Tensor中的元素数目,如果值为-1则打印所有元素 - **summarize** (int)-打印Tensor中的元素数目,如果值为-1则打印所有元素。默认值为20
- **message** (str)-打印Tensor信息前自定义的字符串类型消息,作为前缀打印 - **message** (str)-打印Tensor信息前自定义的字符串类型消息,作为前缀打印
- **first_n** (int)-打印Tensor的次数 - **first_n** (int)-打印Tensor的次数
- **print_tensor_name** (bool)-可选,指明是否打印Tensor名称,默认为True - **print_tensor_name** (bool)-可选,指明是否打印Tensor名称,默认为True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册