From 401e92f6e389cd90ad2ddadc960630770bf89f4a Mon Sep 17 00:00:00 2001 From: yuyang18 Date: Tue, 17 Jul 2018 17:57:58 +0800 Subject: [PATCH] Change attr comment --- paddle/fluid/operators/reader/open_files_op.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/reader/open_files_op.cc b/paddle/fluid/operators/reader/open_files_op.cc index 0519f5856bb..aa55681ffca 100644 --- a/paddle/fluid/operators/reader/open_files_op.cc +++ b/paddle/fluid/operators/reader/open_files_op.cc @@ -259,8 +259,11 @@ class OpenFilesOpMaker : public FileReaderMakerBase { An OpenFilesOp creates a MultiFileReader, which is able to read data multi-threaded from multiple files. )DOC"); - AddAttr("thread_num", "Number of thread to read files."); - AddAttr("buffer_size", "The reading buffer of these files."); + AddAttr("thread_num", + "The maximal concurrent prefetch thread number. Used only " + "when is_test = False"); + AddAttr("buffer_size", "The reading buffer of these files.") + .GreaterThan(0); } }; -- GitLab