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

Method import

src/cpu/CpuTensor.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65StatusCode CpuTensor::import(void *handle, ImportMemoryType type)
66{
67 ARM_COMPUTE_ASSERT(_legacy_tensor.get() != nullptr);
68 ARM_COMPUTE_UNUSED(type);
69
70 const auto st = _legacy_tensor->allocator()->import_memory(handle);
71 return bool(st) ? StatusCode::Success : StatusCode::RuntimeError;
72}
73
74arm_compute::ITensor *CpuTensor::tensor() const
75{

Callers 2

AclTensorImportFunction · 0.45
setupMethod · 0.45

Calls 3

getMethod · 0.45
import_memoryMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected