From bce08d19ccac8a5302a162d371c80bae7c74c289 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 20 Mar 2018 19:39:19 +0800 Subject: [PATCH] Python wrapper for MultiPassReader --- python/paddle/fluid/layers/io.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 9c91f395e7c..e0c4cffa2d9 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -314,6 +314,11 @@ def create_double_buffer_reader(reader, place=None): attrs) +def create_multi_pass_reader(reader, pass_num): + return __create_decorated_reader__('create_multi_pass_reader', reader, + {'pass_num': int(pass_num)}) + + def read_file(file_obj): helper = LayerHelper('read_file') out = [ -- GitLab