| 394 | } |
| 395 | |
| 396 | at::Tensor waitOffload(at::Tensor tensor, long id) |
| 397 | { |
| 398 | assert(hasKey(offload_events_, id)); |
| 399 | offload_events_[id]->block(at::cuda::getCurrentCUDAStream()); |
| 400 | |
| 401 | assert(hasKey(offload_buffers_, id)); |
| 402 | return offload_buffers_.at(id); |
| 403 | } |
| 404 | |
| 405 | at::Tensor waitReload(at::Tensor tensor, long id) |
| 406 | { |
no test coverage detected