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

Function AclActivation

src/c/operators/AclActivation.cpp:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "src/common/utils/Validate.h"
29
30extern "C" AclStatus AclActivation(AclOperator *external_op,
31 AclContext external_ctx,
32 const AclTensorDescriptor *src,
33 const AclTensorDescriptor *dst,
34 const AclActivationDescriptor info)
35{
36 using namespace arm_compute;
37
38 // Extract internal context
39 auto ctx = get_internal(external_ctx);
40 StatusCode status = detail::validate_internal_context(ctx);
41 ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status);
42
43 bool is_validate = (external_op == ARM_COMPUTE_VALIDATE_OPERATOR_SUPPORT);
44
45 std::tie(*external_op, status) = ctx->create_activation(*src, *dst, info, is_validate);
46 ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status);
47
48 return AclSuccess;
49}

Callers 1

ActivationMethod · 0.85

Calls 3

get_internalFunction · 0.50
create_activationMethod · 0.45

Tested by

no test coverage detected