| 95 | } |
| 96 | |
| 97 | extern "C" AclStatus AclMapTensor(AclTensor external_tensor, void **handle) |
| 98 | { |
| 99 | using namespace arm_compute; |
| 100 | |
| 101 | auto tensor = get_internal(external_tensor); |
| 102 | StatusCode status = detail::validate_internal_tensor(tensor); |
| 103 | ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status); |
| 104 | |
| 105 | if (handle == nullptr) |
| 106 | { |
| 107 | ARM_COMPUTE_LOG_ERROR_ACL("[AclMapTensor]: Handle object is nullptr!"); |
| 108 | return AclInvalidArgument; |
| 109 | } |
| 110 | |
| 111 | *handle = tensor->map(); |
| 112 | |
| 113 | return AclSuccess; |
| 114 | } |
| 115 | |
| 116 | extern "C" AclStatus AclUnmapTensor(AclTensor external_tensor, void *handle) |
| 117 | { |
no test coverage detected