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

Function AclTensorImport

src/c/AclTensor.cpp:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130extern "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
144extern "C" AclStatus AclDestroyTensor(AclTensor external_tensor)
145{

Callers 1

importMethod · 0.85

Calls 3

validate_internal_tensorFunction · 0.85
get_internalFunction · 0.50
importMethod · 0.45

Tested by

no test coverage detected