MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / reset_worker_pids

Function reset_worker_pids

imperative/python/src/utils.cpp:289–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289static void reset_worker_pids(PyObject* loader_id) {
290 int64_t key = unpackLong(loader_id);
291 auto it = worker_pids.find(key);
292 if (it == worker_pids.end()) {
293 throw std::runtime_error(
294 "Cannot find worker information for DataLoaderIter with id");
295 }
296 worker_pids.erase(it);
297}
298
299#else
300

Callers 1

init_utilsFunction · 0.85

Calls 4

unpackLongFunction · 0.85
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected