From fc77b504c5cda837b5a163a91a7b9e1f252ee993 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 11 Oct 2018 09:42:09 +0800 Subject: [PATCH] fix data overlap bug --- python/paddle/fluid/layers/io.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 25fde782b7e..ee572c73850 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -489,12 +489,12 @@ def _py_reader(capacity, ranks = [] shapes = [] - for data in feed_list: - dtypes.append(data.dtype) - shape_concat.extend(data.shape) - ranks.append(len(data.shape)) - shapes.append(data.shape) - lod_levels.append(data.lod_level) + for feed_data in feed_list: + dtypes.append(feed_data.dtype) + shape_concat.extend(feed_data.shape) + ranks.append(len(feed_data.shape)) + shapes.append(feed_data.shape) + lod_levels.append(feed_data.lod_level) else: dtypes = [convert_np_dtype_to_dtype_(dt) for dt in dtypes] shape_concat = [] -- GitLab