diff --git a/paddle/fluid/operators/reader/create_py_array_reader_op.cc b/paddle/fluid/operators/reader/create_py_array_reader_op.cc index ed7ef4affb608f0febf128a7162596d883cbb75e..36378c7deb9859d0fefa7644aa08b6c0afee8bbc 100644 --- a/paddle/fluid/operators/reader/create_py_array_reader_op.cc +++ b/paddle/fluid/operators/reader/create_py_array_reader_op.cc @@ -29,9 +29,7 @@ class PyArrayReader : public framework::ReaderBase { *out = queue_->Dequeue(); } - void ReInit() override { - // PADDLE_THROW("PyArrayReader does not support ReInit()"); - } + void ReInit() override {} private: std::shared_ptr queue_; diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 3773653bcdd7a0d79261b077e44783d7e4633e79..811471c5fd626cfed07d63631ceecaf442ee0d8c 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -449,7 +449,6 @@ def random_data_generator(low, high, shapes, lod_levels, for_parallel=True): return monkey_patch_reader_methods(main_prog_var) -# UNCHECK(zengjinle) def py_array_reader(capacity, shapes, lod_levels,