Skip to content

Commit 401e92f

Browse files
committed
Change attr comment
1 parent be528f9 commit 401e92f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

paddle/fluid/operators/reader/open_files_op.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ class OpenFilesOpMaker : public FileReaderMakerBase {
259259
An OpenFilesOp creates a MultiFileReader, which is able to
260260
read data multi-threaded from multiple files.
261261
)DOC");
262-
AddAttr<int>("thread_num", "Number of thread to read files.");
263-
AddAttr<int>("buffer_size", "The reading buffer of these files.");
262+
AddAttr<int>("thread_num",
263+
"The maximal concurrent prefetch thread number. Used only "
264+
"when is_test = False");
265+
AddAttr<int>("buffer_size", "The reading buffer of these files.")
266+
.GreaterThan(0);
264267
}
265268
};
266269

0 commit comments

Comments
 (0)