| 287 | } |
| 288 | |
| 289 | static 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 |
no test coverage detected