Import external memory to a given tensor object * * @param[in] handle External memory handle * @param[in] type Type of memory to be imported * * @return Status code */
| 644 | * @return Status code |
| 645 | */ |
| 646 | StatusCode import(void *handle, ImportType type) |
| 647 | { |
| 648 | const auto st = detail::as_enum<StatusCode>( |
| 649 | AclTensorImport(_object.get(), handle, detail::as_cenum<AclImportMemoryType>(type))); |
| 650 | report_status(st, "[Compute Library] Failed to import external memory to tensor!"); |
| 651 | return st; |
| 652 | } |
| 653 | /** Get the size of the tensor in byte |
| 654 | * |
| 655 | * @note The size isn't based on allocated memory, but based on information in its descriptor (dimensions, data type, etc.). |
nothing calls this directly
no test coverage detected