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

Function AclMapTensor

src/c/AclTensor.cpp:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97extern "C" AclStatus AclMapTensor(AclTensor external_tensor, void **handle)
98{
99 using namespace arm_compute;
100
101 auto tensor = get_internal(external_tensor);
102 StatusCode status = detail::validate_internal_tensor(tensor);
103 ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status);
104
105 if (handle == nullptr)
106 {
107 ARM_COMPUTE_LOG_ERROR_ACL("[AclMapTensor]: Handle object is nullptr!");
108 return AclInvalidArgument;
109 }
110
111 *handle = tensor->map();
112
113 return AclSuccess;
114}
115
116extern "C" AclStatus AclUnmapTensor(AclTensor external_tensor, void *handle)
117{

Callers 2

mapMethod · 0.85
setupMethod · 0.85

Calls 3

validate_internal_tensorFunction · 0.85
get_internalFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected