diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 25fde782b7ec6aae089d99f212f867e75e4352ac..ee572c73850cbf93ffd8d120684048c4e7ea346a 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 = []