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

Method get_result

tensorpack/predict/dataset.py:67–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65
66 @HIDE_DOC
67 def get_result(self):
68 self.dataset.reset_state()
69 try:
70 sz = len(self.dataset)
71 except NotImplementedError:
72 sz = 0
73 with get_tqdm(total=sz, disable=(sz == 0)) as pbar:
74 for dp in self.dataset:
75 res = self.predictor(*dp)
76 yield res
77 pbar.update()
78
79
80class MultiProcessDatasetPredictor(DatasetPredictorBase):

Callers 5

sampleFunction · 0.95
sampleFunction · 0.95
sampleFunction · 0.95
viz_camFunction · 0.95
inferenceFunction · 0.95

Calls 3

get_tqdmFunction · 0.85
updateMethod · 0.80
reset_stateMethod · 0.45

Tested by

no test coverage detected