37 auto k = std::make_unique<kernels::CpuActivationKernel>();
38 k->configure(input, output, activation_info);
39 _kernel = std::move(k);
58 auto act_op = std::make_unique<cpu::CpuActivation>();
59 act_op->configure(&src_info, &dst_info,
info);
67 op->set_internal_operator(std::move(act_op));
std::tuple< IOperator *, StatusCode > create_activation(const AclTensorDescriptor &src, const AclTensorDescriptor &dst, const AclActivationDescriptor &act, bool is_validate) override
void configure(const ITensorInfo *input, ITensorInfo *output, const ActivationLayerInfo &activation_info)
Configure operator for a given list of arguments.
TensorInfo convert_to_legacy_tensor_info(const AclTensorDescriptor &desc)
Convert a descriptor to a legacy format one.
Base class for all async functions.
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-2021 Arm Limited.
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)
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ActivationLayerInfo &act_info)
Static function to check if given info will lead to a valid configuration.
Store the tensor's metadata.
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.
ActivationLayerInfo convert_to_activation_info(const AclActivationDescriptor &desc)
Convert an AclActivation descriptor to an internal one.