Args: config (PredictConfig): the config of predictor. dataset (DataFlow): the DataFlow to run on.
(self, config, dataset)
| 29 | """ |
| 30 | |
| 31 | def __init__(self, config, dataset): |
| 32 | """ |
| 33 | Args: |
| 34 | config (PredictConfig): the config of predictor. |
| 35 | dataset (DataFlow): the DataFlow to run on. |
| 36 | """ |
| 37 | assert isinstance(dataset, DataFlow) |
| 38 | assert isinstance(config, PredictConfig) |
| 39 | self.config = config |
| 40 | self.dataset = dataset |
| 41 | |
| 42 | @abstractmethod |
| 43 | def get_result(self): |