From ce84af638bc6204c30272f3163e7f7b3026bcfec Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Mon, 26 Mar 2018 10:48:54 +0800 Subject: [PATCH] update --- doc/fluid/design/concepts/cpp_data_feeding.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/fluid/design/concepts/cpp_data_feeding.md b/doc/fluid/design/concepts/cpp_data_feeding.md index 6ed3f604dc0..9c44dec4b96 100644 --- a/doc/fluid/design/concepts/cpp_data_feeding.md +++ b/doc/fluid/design/concepts/cpp_data_feeding.md @@ -185,8 +185,8 @@ With `MultiPassReader`, the startup program would be like this: ``` multiple_reader = open_files_op(...) batch_reader = create_batch_reader_op(multiple_reader) -double_buffer_reader = create_double_buffer_op(batch_reader) -multi_pass_reader = create_multi_pass_reader_op(double_buffer_reader) +multi_pass_reader = create_multi_pass_reader_op(batch_reader) +double_buffer_reader = create_double_buffer_op(multi_pass_reader) ... (other initializers) ``` @@ -195,8 +195,8 @@ The forwarding part of the corresponding `main_program` would be like this: ``` not_completed = true while_op(not_completed) { - batch_data = read_op(multi_pass_reader) + batch_data = read_op(double_buffer_reader) ... (subsequent training ops) - not_completed = has_next_op(multi_pass_reader) + not_completed = has_next_op(double_buffer_reader) } ``` -- GitLab