| 293 | } |
| 294 | |
| 295 | std::thread ILSVRC::AsyncLoadData(int flag, string file, size_t read_size, |
| 296 | Tensor *x, Tensor *y, size_t *n_read, |
| 297 | int nthreads) { |
| 298 | return std::thread( |
| 299 | [=]() { LoadData(flag, file, read_size, x, y, n_read, nthreads); }); |
| 300 | } |
| 301 | |
| 302 | size_t ILSVRC::LoadData(int flag, string file, size_t read_size, Tensor *x, |
| 303 | Tensor *y, size_t *n_read, int nthreads) { |
no outgoing calls