From 01e933c8e21286ff551df8fc124a8945ab748dca Mon Sep 17 00:00:00 2001 From: mapingshuo Date: Wed, 8 Jan 2020 15:07:22 +0800 Subject: [PATCH] add example for reshape op --- doc/fluid/api_cn/layers_cn/reshape_cn.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/layers_cn/reshape_cn.rst b/doc/fluid/api_cn/layers_cn/reshape_cn.rst index 459037fbe..c0c8f256e 100644 --- a/doc/fluid/api_cn/layers_cn/reshape_cn.rst +++ b/doc/fluid/api_cn/layers_cn/reshape_cn.rst @@ -67,7 +67,11 @@ reshape reshaped_2 = fluid.layers.reshape(data_2, shape=[dim, 10]) # the shape of reshaped_2 is [5,10]. - + # example 3: + data_3 = fluid.data( + name="data_3", shape=[2,4,6], dtype='float32') + reshaped_3 = fluid.layers.reshape(x=data_3, shape=[6,8]) + # the shape of reshaped_3 is [6,8]. -- GitLab