41 auto k = std::make_unique<kernels::ClActivationKernel>();
42 k->configure(compile_context, src, dst, act_info);
43 _kernel = std::move(
k);
67 auto act_op = std::make_unique<arm_compute::opencl::ClActivation>();
76 op->set_internal_operator(std::move(act_op));
TensorInfo convert_to_legacy_tensor_info(const AclTensorDescriptor &desc)
Convert a descriptor to a legacy format one.
Base class for all async functions.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
Log an error message to the logger.
Activation Layer Information class.
SimpleTensor< float > src
Copyright (c) 2017-2022 Arm Limited.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const ActivationLayerInfo &act_info)
Static function to check if given info will lead to a valid configuration.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const ActivationLayerInfo &act_info)
Static function to check if given info will lead to a valid configuration.
ITensorInfo & set_is_resizable(bool is_resizable) override
Set the flag whether the tensor size can be changed.
TensorInfo src_info(src_shape, 1, data_type)
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void configure(const ClCompileContext &compile_context, ITensorInfo *src, ITensorInfo *dst, const ActivationLayerInfo &activation_info)
Configure operator for a given list of arguments.
#define ARM_COMPUTE_LOG_PARAMS(...)
Store the tensor's metadata.
ActivationLayerInfo convert_to_activation_info(const AclActivationDescriptor &desc)
Convert an AclActivation descriptor to an internal one.