We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be528f9 commit 401e92fCopy full SHA for 401e92f
paddle/fluid/operators/reader/open_files_op.cc
@@ -259,8 +259,11 @@ class OpenFilesOpMaker : public FileReaderMakerBase {
259
An OpenFilesOp creates a MultiFileReader, which is able to
260
read data multi-threaded from multiple files.
261
)DOC");
262
- AddAttr<int>("thread_num", "Number of thread to read files.");
263
- AddAttr<int>("buffer_size", "The reading buffer of these files.");
+ AddAttr<int>("thread_num",
+ "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);
267
}
268
};
269
0 commit comments