| 128 | } |
| 129 | |
| 130 | extern "C" AclStatus AclTensorImport(AclTensor external_tensor, void *handle, AclImportMemoryType type) |
| 131 | { |
| 132 | using namespace arm_compute; |
| 133 | |
| 134 | auto tensor = get_internal(external_tensor); |
| 135 | StatusCode status = detail::validate_internal_tensor(tensor); |
| 136 | ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status); |
| 137 | |
| 138 | status = tensor->import(handle, utils::as_enum<ImportMemoryType>(type)); |
| 139 | ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status); |
| 140 | |
| 141 | return AclSuccess; |
| 142 | } |
| 143 | |
| 144 | extern "C" AclStatus AclDestroyTensor(AclTensor external_tensor) |
| 145 | { |
no test coverage detected