__init__.py 565 字节
Newer Older
W
weishengyu 已提交
1 2
from abc import ABC, abstractmethod

G
gaotingquan 已提交
3 4
from processor.algo_mod import searcher
from processor.algo_mod.predictors import build_predictor
W
weishengyu 已提交
5

G
gaotingquan 已提交
6 7 8 9 10 11
# def build_processor(config):
#     print(config)
#     processor_type = config.get("processor_type")
#     processor_mod = locals()[processor_type]
#     processor_name = config.get("processor_name")
#     return getattr(processor_mod, processor_name)
W
weishengyu 已提交
12

G
gaotingquan 已提交
13 14 15 16
# class BaseProcessor(ABC):
#     @abstractmethod
#     def __init__(self, config):
#         pass
W
weishengyu 已提交
17

G
gaotingquan 已提交
18 19 20
#     @abstractmethod
#     def process(self, input_data):
#         pass