You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

base.py 296 B

1234567891011121314
  1. # Copyright (c) Alibaba, Inc. and its affiliates.
  2. from abc import ABC, abstractmethod
  3. from typing import Any, Dict
  4. class Preprocessor(ABC):
  5. def __init__(self, *args, **kwargs):
  6. pass
  7. @abstractmethod
  8. def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
  9. pass

致力于通过开放的社区合作,开源AI模型以及相关创新技术,推动基于模型即服务的生态繁荣发展