From bc074d0e581bb0804d11246c3d87ccaa1a5abc50 Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Mon, 27 Feb 2017 13:43:41 +0800 Subject: [PATCH] minor change --- python/paddle/v2/data_feeder.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/python/paddle/v2/data_feeder.py b/python/paddle/v2/data_feeder.py index 632f1760ab5..2a16d46dda4 100644 --- a/python/paddle/v2/data_feeder.py +++ b/python/paddle/v2/data_feeder.py @@ -58,13 +58,13 @@ class DataFeeder(DataProviderConverter): :type reader_dict: dict() """ self.input_names = [] - self.input_types = [] + input_types = [] self.reader_dict = reader_dict for each in data_types: self.input_names.append(each[0]) assert isinstance(each[1], data_type.InputType) - self.input_types.append(each[1]) - DataProviderConverter.__init__(self, self.input_types) + input_types.append(each[1]) + DataProviderConverter.__init__(self, input_types) def convert(self, dat, argument=None): """ @@ -98,6 +98,3 @@ class DataFeeder(DataProviderConverter): return retv return DataProviderConverter.convert(self, reorder_data(dat), argument) - - def __call__(self, dat, argument=None): - return self.convert(dat, argument) -- GitLab