Maps the backing memory of a given tensor that can be used by the host to access any contents * * @return A valid non-zero pointer in case of success else nullptr */
| 618 | * @return A valid non-zero pointer in case of success else nullptr |
| 619 | */ |
| 620 | void *map() |
| 621 | { |
| 622 | void *handle = nullptr; |
| 623 | const auto st = detail::as_enum<StatusCode>(AclMapTensor(_object.get(), &handle)); |
| 624 | report_status(st, "[Compute Library] Failed to map the tensor and extract the tensor's backing memory!"); |
| 625 | return handle; |
| 626 | } |
| 627 | /** Unmaps tensor's memory |
| 628 | * |
| 629 | * @param[in] handle Handle to unmap |
nothing calls this directly
no test coverage detected