From af4615c18c01ac5aef7bb63aaca956be1ca53816 Mon Sep 17 00:00:00 2001 From: Genieliu Date: Thu, 18 Apr 2019 13:59:41 +0800 Subject: [PATCH] Fix create lod tensor API (#737) * fix create_lod_tensor * fix create_lod_tensor English version * Update feeding_data_en.rst --- doc/fluid/user_guides/howto/prepare_data/feeding_data.rst | 2 +- doc/fluid/user_guides/howto/prepare_data/feeding_data_en.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/user_guides/howto/prepare_data/feeding_data.rst b/doc/fluid/user_guides/howto/prepare_data/feeding_data.rst index 8a8aa82df..6fcf529f7 100644 --- a/doc/fluid/user_guides/howto/prepare_data/feeding_data.rst +++ b/doc/fluid/user_guides/howto/prepare_data/feeding_data.rst @@ -86,7 +86,7 @@ PaddlePaddle Fluid支持使用 :code:`fluid.layers.data()` 配置数据层; exe.run(feed={ "sentence": create_lod_tensor( data=numpy.array([1, 3, 4, 5, 3, 6, 8], dtype='int64').reshape(-1, 1), - lod=[[4, 1, 2]], + recursive_seq_lens=[[4, 1, 2]], place=fluid.CPUPlace() ) }) diff --git a/doc/fluid/user_guides/howto/prepare_data/feeding_data_en.rst b/doc/fluid/user_guides/howto/prepare_data/feeding_data_en.rst index adfbf1d0e..2e39b4a37 100644 --- a/doc/fluid/user_guides/howto/prepare_data/feeding_data_en.rst +++ b/doc/fluid/user_guides/howto/prepare_data/feeding_data_en.rst @@ -83,7 +83,7 @@ For example: exe.run(feed={ "sentence": create_lod_tensor( data=numpy.array([1, 3, 4, 5, 3, 6, 8], dtype='int64').reshape(-1, 1), - lod=[4, 1, 2], + recursive_seq_lens=[[4, 1, 2]], place=fluid.CPUPlace() ) }) -- GitLab