提交 5136a2b6 编写于 作者: W wuzewu
...@@ -20,10 +20,10 @@ import paddle.fluid as fluid ...@@ -20,10 +20,10 @@ import paddle.fluid as fluid
import numpy as np import numpy as np
import tempfile import tempfile
import os import os
import module_desc_pb2 import paddle_hub.module_desc_pb2
from collections import defaultdict from collections import defaultdict
from downloader import download_and_uncompress from paddle_hub.downloader import download_and_uncompress
__all__ = ["Module", "ModuleConfig", "ModuleUtils"] __all__ = ["Module", "ModuleConfig", "ModuleUtils"]
DICT_NAME = "dict.txt" DICT_NAME = "dict.txt"
...@@ -80,6 +80,7 @@ class Module(object): ...@@ -80,6 +80,7 @@ class Module(object):
#TODO(ZeyuChen): Need add register more signature to execute different #TODO(ZeyuChen): Need add register more signature to execute different
# implmentation # implmentation
def __call__(self, inputs=None, signature=None): def __call__(self, inputs=None, signature=None):
""" Call default signature and return results """ Call default signature and return results
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册