38 auto k = std::make_unique<KernelType>();
40 _kernel = std::move(
k);
static Status validate(ArithmeticOperation op, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration.
void configure(const CLCompileContext &compile_context, ITensorInfo *input, ITensorInfo *alpha, ITensorInfo *output)
Set the input and output tensor.
Store the tensor's metadata.
Interface for CPU tensor.
Copyright (c) 2017-2021 Arm Limited.
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
const ITensor * get_const_tensor(int id) const
Get constant tensor of a given id.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
static Status validate(const ITensorInfo *input, const ITensorInfo *alpha, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration.
y*x if x < 0, x otherwise
ITensor * get_tensor(int id)
Get tensor of a given id from the pac.
#define ARM_COMPUTE_LOG_PARAMS(...)
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.