From 88abad3ea8dc51c6b3d1a72dd063b8ad16414ce5 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Mon, 9 Mar 2020 12:50:49 +0800 Subject: [PATCH] fix emb demo, test=develop (#1886) --- doc/fluid/api_cn/layers_cn/embedding_cn.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/fluid/api_cn/layers_cn/embedding_cn.rst b/doc/fluid/api_cn/layers_cn/embedding_cn.rst index d494c7f65..2cfbefbba 100644 --- a/doc/fluid/api_cn/layers_cn/embedding_cn.rst +++ b/doc/fluid/api_cn/layers_cn/embedding_cn.rst @@ -74,6 +74,8 @@ embedding .. code-block:: python import paddle.fluid as fluid + import numpy as np + data = fluid.layers.data(name='sequence', shape=[1], dtype='int64', lod_level=1) # 示例 1 -- GitLab