| 53 | } |
| 54 | |
| 55 | StatusCode ClTensor::unmap() |
| 56 | { |
| 57 | ARM_COMPUTE_ASSERT(_legacy_tensor.get() != nullptr); |
| 58 | |
| 59 | if (_legacy_tensor == nullptr) |
| 60 | { |
| 61 | ARM_COMPUTE_LOG_ERROR_ACL("[ClTensor:unmap]: Backing tensor does not exist!"); |
| 62 | return StatusCode::RuntimeError; |
| 63 | } |
| 64 | _legacy_tensor->unmap(); |
| 65 | |
| 66 | return StatusCode::Success; |
| 67 | } |
| 68 | |
| 69 | StatusCode ClTensor::allocate() |
| 70 | { |