MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/predict/dataset.py:31–40  ·  view source on GitHub ↗

Args: config (PredictConfig): the config of predictor. dataset (DataFlow): the DataFlow to run on.

(self, config, dataset)

Source from the content-addressed store, hash-verified

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):

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected