提交 f684ab43 编写于 作者: W wuzewu

Fix hub run bug

上级 0d5230d1
......@@ -138,6 +138,7 @@ class Module(object):
self._directory = directory
self._initialize(**kwargs)
self._is_initialize = True
self._code_version = "v2"
@classmethod
def init_with_name(cls, name, version=None, **kwargs):
......@@ -210,6 +211,10 @@ class Module(object):
def name(self):
return self.__class__._name
@property
def code_version(self):
return self._code_version
@property
def is_runnable(self):
return self._run_func != None
......@@ -251,6 +256,7 @@ class ModuleV1(Module):
self.default_signature = None
self.processor = None
self.extra_info = {}
self._code_version = "v1"
# parse desc
self.module_desc_path = os.path.join(self.directory, MODULE_DESC_PBNAME)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册