MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / worker

Method worker

utils/engine/evaluator.py:180–187  ·  view source on GitHub ↗
(self, shred_list, device)

Source from the content-addressed store, hash-verified

178 return result_line
179
180 def worker(self, shred_list, device):
181 start_load_time = time.time()
182 logger.info("Load Model on Device %d: %.2fs" % (device, time.time() - start_load_time))
183
184 for idx in shred_list:
185 dd = self.dataset[idx]
186 results_dict = self.func_per_iteration(dd, device)
187 self.results_queue.put(results_dict)
188
189 def func_per_iteration(self, data, device):
190 raise NotImplementedError

Callers

nothing calls this directly

Calls 1

func_per_iterationMethod · 0.95

Tested by

no test coverage detected