| 169 | } |
| 170 | |
| 171 | void TensorAllocator::set_associated_memory_group(IMemoryGroup *associated_memory_group) |
| 172 | { |
| 173 | ARM_COMPUTE_ERROR_ON(associated_memory_group == nullptr); |
| 174 | ARM_COMPUTE_ERROR_ON(_associated_memory_group != nullptr && _associated_memory_group != associated_memory_group); |
| 175 | ARM_COMPUTE_ERROR_ON(_memory.region() != nullptr && _memory.region()->buffer() != nullptr); |
| 176 | |
| 177 | _associated_memory_group = associated_memory_group; |
| 178 | } |
| 179 | |
| 180 | uint8_t *TensorAllocator::lock() |
| 181 | { |
no test coverage detected