diff --git a/python/paddle/v2/config_base.py b/python/paddle/v2/config_base.py index 0fc711e99a18a4ed2665315c22b78e96be942b89..fa2ccec6c3270541dd6b13fdfd2323d10ceac642 100644 --- a/python/paddle/v2/config_base.py +++ b/python/paddle/v2/config_base.py @@ -93,8 +93,6 @@ def __convert_to_v2__(method_name, parent_names, is_default_name=True): name = kwargs.get('name', None) super(V2LayerImpl, self).__init__(name, parent_layers) - if kwargs.has_key('size'): - self.size = kwargs['size'] self.__other_kwargs__ = other_kwargs if wrapper is not None: