24.02.1
|
Go to the documentation of this file.
43 auto k = std::make_unique<kernels::CpuSubKernel>();
44 k->configure(src0, src1,
dst, policy);
45 _kernel = std::move(k);
60 const auto split_dimension =
static_cast<kernels::CpuSubKernel *
>(_kernel.get())->get_split_dimension();
void configure(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, dst and conversion policy.
virtual void schedule_op(ICPPKernel *kernel, const Hints &hints, const Window &window, ITensorPack &tensors)=0
Runs the kernel in the same thread as the caller synchronously.
static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
Activation Layer Information class.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
static IScheduler & get()
Access the scheduler singleton.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Interface for the kernel to perform subtraction between two tensors.
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_PARAMS(...)