| 213 | } |
| 214 | |
| 215 | void CLTensorAllocator::unlock() |
| 216 | { |
| 217 | ARM_COMPUTE_ERROR_ON(_memory.region() == nullptr); |
| 218 | if (_ctx) |
| 219 | { |
| 220 | unmap(_ctx->gpu_scheduler()->queue(), reinterpret_cast<uint8_t *>(_memory.region()->buffer())); |
| 221 | } |
| 222 | else |
| 223 | { |
| 224 | //Legacy singleton api |
| 225 | unmap(CLScheduler::get().queue(), reinterpret_cast<uint8_t *>(_memory.region()->buffer())); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | uint8_t *CLTensorAllocator::map(cl::CommandQueue &q, bool blocking) |
| 230 | { |
no test coverage detected