From 9b63fef32d724d9b1c68383a1483d2a0c1291415 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Mon, 25 Jun 2018 02:01:23 +0000 Subject: [PATCH] delete some redundant comments --- paddle/fluid/operators/reader/create_py_array_reader_op.cc | 4 +--- python/paddle/fluid/layers/io.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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 ed7ef4aff..36378c7de 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 3773653bc..811471c5f 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, -- GitLab