From 9a5be05a3b0971678ec83774eed094fa000319a0 Mon Sep 17 00:00:00 2001 From: liu zhengxi <380185688@qq.com> Date: Fri, 10 Apr 2020 11:05:26 +0800 Subject: [PATCH] update shape to make it meaningfull, test=develop (#1964) --- doc/fluid/api_cn/layers_cn/pad2d_cn.rst | 2 +- doc/fluid/api_cn/layers_cn/pad_cn.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/api_cn/layers_cn/pad2d_cn.rst b/doc/fluid/api_cn/layers_cn/pad2d_cn.rst index 9febca74d..364d3a11b 100644 --- a/doc/fluid/api_cn/layers_cn/pad2d_cn.rst +++ b/doc/fluid/api_cn/layers_cn/pad2d_cn.rst @@ -55,5 +55,5 @@ pad2d .. code-block:: python import paddle.fluid as fluid - data = fluid.data(name='data', shape=[1, 1, 2, 3], dtype='float32') + data = fluid.data(name='data', shape=[None, 3, 32, 32], dtype='float32') result = fluid.layers.pad2d(input=data, paddings=[0, 1, 2, 3], mode='reflect') diff --git a/doc/fluid/api_cn/layers_cn/pad_cn.rst b/doc/fluid/api_cn/layers_cn/pad_cn.rst index f81fe33cd..38acffa64 100644 --- a/doc/fluid/api_cn/layers_cn/pad_cn.rst +++ b/doc/fluid/api_cn/layers_cn/pad_cn.rst @@ -42,7 +42,7 @@ pad # x 为一个秩为2的张量 import paddle.fluid as fluid - x = fluid.data(name='data', shape=[2, 2], dtype='float32') + x = fluid.data(name='data', shape=[300, 300], dtype='float32') out = fluid.layers.pad(x=x, paddings=[0, 1, 1, 2], pad_value=0.) -- GitLab