| 39 | } |
| 40 | |
| 41 | void *ClTensor::map() |
| 42 | { |
| 43 | ARM_COMPUTE_ASSERT(_legacy_tensor.get() != nullptr); |
| 44 | |
| 45 | if (_legacy_tensor == nullptr) |
| 46 | { |
| 47 | ARM_COMPUTE_LOG_ERROR_ACL("[ClTensor:map]: Backing tensor does not exist!"); |
| 48 | return nullptr; |
| 49 | } |
| 50 | |
| 51 | _legacy_tensor->map(); |
| 52 | return _legacy_tensor->buffer(); |
| 53 | } |
| 54 | |
| 55 | StatusCode ClTensor::unmap() |
| 56 | { |