MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / import

Method import

arm_compute/Acl.hpp:646–652  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

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.).

Callers

nothing calls this directly

Calls 3

AclTensorImportFunction · 0.85
report_statusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected