From ab1cb975a878e6ff3dfa956b3c67fcb99f46c8a0 Mon Sep 17 00:00:00 2001 From: wuzewu Date: Wed, 6 Mar 2019 14:22:10 +0800 Subject: [PATCH] remove redundant code --- paddle_hub/module/module.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/paddle_hub/module/module.py b/paddle_hub/module/module.py index a640dc1d..6cc5331e 100644 --- a/paddle_hub/module/module.py +++ b/paddle_hub/module/module.py @@ -58,15 +58,6 @@ PROCESSOR_NAME = "processor" HUB_VAR_PREFIX = "@HUB@" -class ModuleWrapper: - def __init__(self, module, name): - self.module = module - self.name = name - - def __call__(self, data, config): - return self.module(self.name, data, config) - - class ModuleHelper: def __init__(self, module_dir): self.module_dir = module_dir @@ -239,14 +230,6 @@ class Module: self.version = module_info.get('version', 'UNKNOWN') self.name = module_info.get('name', 'UNKNOWN') - -# self.author = module_info['author'] if 'author' in module_info else "UNKNOWN" -# self.author_email = module_info['author_email'] if 'author_email' in module_info else "UNKNOWN" -# self.summary = module_info['summary'] if 'summary' in module_info else "UNKNOWN" -# self.type = module_info['type'] if 'type' in module_info else "UNKNOWN" -# self.version = module_info['version'] if 'version' in module_info else "UNKNOWN" -# self.name = module_info['name'] if 'name' in module_info else "UNKNOWN" - def _generate_sign_attr(self): self._check_signatures() for sign in self.signatures: -- GitLab